Skip to content

Commit

Permalink
ci: separate lint step (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip9587 authored Feb 19, 2025
1 parent a5daa07 commit da74883
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ permissions:
contents: read

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Install Node.js dependencies
run: npm install --ignore-scripts --include=dev

- name: Lint code
run: npm run lint

test:
name: Test - Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
Expand All @@ -34,9 +51,6 @@ jobs:
- name: Run tests
run: npm run test-ci

- name: Lint code
run: npm run lint

- name: Upload code coverage
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit da74883

Please sign in to comment.