Skip to content

Commit

Permalink
chore(ci): Split linter into a separate CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jun 26, 2024
1 parent 2bb8405 commit 9d488d2
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:

env:
CI: true
LINT: ${{ matrix.node-version == '22.x' && true || false }}

steps:
- uses: actions/checkout@v4
Expand All @@ -28,5 +27,23 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn test

lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]

env:
CI: true

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable
- run: yarn install
- run: yarn lint
if: ${{ env.LINT == 'true' }}

0 comments on commit 9d488d2

Please sign in to comment.