Skip to content

Commit

Permalink
add lint to CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Nov 23, 2023
1 parent 6a97ca9 commit 416bee4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,31 @@ on:
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: test-workflow

jobs:
lint:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
cache: "yarn"

- name: Install Dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
test-node:
strategy:
matrix:
version: [18, 20]
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -37,6 +56,7 @@ jobs:
run: yarn test
test-bun:
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -64,6 +84,9 @@ jobs:
if: ${{ always() }}
needs: [test-node, test-bun]
runs-on: ubuntu-latest
concurrency:
group: test-workflow
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 416bee4

Please sign in to comment.