Skip to content

Commit 42d50cf

Browse files
committed
Move linting to the "check" job in CI
It's not necessary to run `npm run check` in every compiler test job, and the "check" job seems pretty useless as-is.
1 parent 9fd90aa commit 42d50cf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13+
- uses: dcodeIO/setup-node-nvm@master
14+
with:
15+
node-version: current
1316
- name: "Check that distribution files are unmodified"
1417
if: github.event_name == 'pull_request'
1518
run: |
@@ -20,6 +23,10 @@ jobs:
2023
else
2124
printf "\nOK: Distributions files have not been modified.\n";
2225
fi
26+
- name: Install dependencies
27+
run: npm ci --no-audit
28+
- name: Check
29+
run: npm run check
2330
compiler:
2431
name: "Compiler (${{ matrix.os }}, node ${{ matrix.node_version }})"
2532
runs-on: ${{ matrix.os }}-latest
@@ -37,8 +44,6 @@ jobs:
3744
run: npm ci --no-audit
3845
- name: Build
3946
run: npm run build
40-
- name: Check
41-
run: npm run check
4247
- name: Test
4348
run: npm test
4449
bootstrap:

0 commit comments

Comments
 (0)