Skip to content

Commit f271c54

Browse files
committed
ci(verify): updated to follow modern conventions
1 parent 0236339 commit f271c54

File tree

3 files changed

+9743
-4123
lines changed

3 files changed

+9743
-4123
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ name: Test
88
types:
99
- opened
1010
- synchronize
11+
12+
permissions:
13+
contents: read
14+
15+
env:
16+
FORCE_COLOR: 1
17+
NPM_CONFIG_COLOR: always
18+
1119
jobs:
1220
test_matrix:
1321
strategy:
@@ -27,22 +35,27 @@ jobs:
2735
node-version: "${{ matrix.node-version }}"
2836
cache: npm
2937
- run: npm clean-install
30-
- name: Ensure dependencies are compatible with the engines range
31-
run: npx ls-engines
32-
- run: "npm run test:ci"
33-
test:
38+
- run: corepack npm audit signatures
39+
- run: npm test
40+
41+
test_dev:
3442
runs-on: ubuntu-latest
35-
needs: test_matrix
36-
if: ${{ always() }}
3743
steps:
3844
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39-
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
45+
- name: "Use development Node.js version"
46+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4047
with:
41-
node-version: lts/*
48+
node-version-file: .nvmrc
4249
cache: npm
4350
- run: npm clean-install
4451
- run: corepack npm audit signatures
45-
- run: npm run lint
52+
- run: npm test
53+
54+
test:
55+
runs-on: ubuntu-latest
56+
needs: test_matrix
57+
if: ${{ !cancelled() }}
58+
steps:
4659
- name: All matrix versions passed
4760
if: ${{ !(contains(needs.*.result, 'failure')) }}
4861
run: exit 0

0 commit comments

Comments
 (0)