Skip to content

Commit da74883

Browse files
authored
ci: separate lint step (#582)
1 parent a5daa07 commit da74883

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/ci.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ permissions:
1212
contents: read
1313

1414
jobs:
15+
lint:
16+
name: Lint
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 'lts/*'
25+
26+
- name: Install Node.js dependencies
27+
run: npm install --ignore-scripts --include=dev
28+
29+
- name: Lint code
30+
run: npm run lint
31+
1532
test:
1633
name: Test - Node.js ${{ matrix.node-version }}
1734
runs-on: ubuntu-latest
@@ -34,9 +51,6 @@ jobs:
3451
- name: Run tests
3552
run: npm run test-ci
3653

37-
- name: Lint code
38-
run: npm run lint
39-
4054
- name: Upload code coverage
4155
uses: actions/upload-artifact@v4
4256
with:

0 commit comments

Comments
 (0)