Skip to content

Commit

Permalink
Merge pull request #523 from systemli/Update-CI-Workflows
Browse files Browse the repository at this point in the history
👷 Update CI Workflows
  • Loading branch information
0x46616c6b authored Oct 20, 2023
2 parents c7a71f1 + a3d52d3 commit 748ad81
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
run: yarn install --frozen-lockfile
Expand All @@ -33,11 +33,11 @@ jobs:

build:
name: Build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [test]
strategy:
matrix:
node-version: ["16", "18", "current"]
node-version: ['18', '20', 'current']

steps:
- name: Checkout
Expand All @@ -47,7 +47,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
cache: 'yarn'

- name: Install Dependencies
run: yarn install --frozen-lockfile
Expand All @@ -58,7 +58,7 @@ jobs:
automerge:
name: Merge Automatically
needs: [test, build]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

permissions:
pull-requests: write
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ on:
pull_request:

jobs:
eslint:
name: ESLint
runs-on: ubuntu-20.04
prettier:
name: Prettier
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Run ESLint
- name: Run Prettier
uses: wearerequired/lint-action@v2
with:
check_name: ESLint Results
eslint: true
eslint_dir: src
eslint_extensions: tsx
check_name: Prettier Results
prettier: true
prettier_dir: src

prettier:
name: Prettier
runs-on: ubuntu-20.04
eslint:
name: ESLint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
node-version: '18'
cache: 'yarn'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Run Prettier
- name: Run ESLint
uses: wearerequired/lint-action@v2
with:
check_name: Prettier Results
prettier: true
prettier_dir: src
check_name: ESLint Results
eslint: true
eslint_extensions: ts,tsx,js,jsx
eslint_dir: src
2 changes: 1 addition & 1 deletion src/__mocks__/react-markdown.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
// eslint-disable-next-line react/prop-types
export default function ReactMarkdown({ children }) {
return <>{children}</>
}

0 comments on commit 748ad81

Please sign in to comment.