Skip to content

Commit e6e432d

Browse files
committed
ci(verify): updated to modern conventions
1 parent cb0c6c4 commit e6e432d

File tree

3 files changed

+9520
-4041
lines changed

3 files changed

+9520
-4041
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 11 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:
@@ -29,25 +37,28 @@ jobs:
2937
node-version: "${{ matrix.node-version }}"
3038
cache: npm
3139
- run: npm clean-install
32-
- run: "npm run test:ci"
33-
test:
40+
- run: corepack npm audit signatures
41+
- run: npm test
42+
43+
test_dev:
3444
runs-on: ubuntu-latest
35-
needs: test_matrix
36-
if: always()
3745
steps:
3846
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3947
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4048
with:
41-
node-version: "lts/*"
49+
node-version-file: .nvmrc
4250
cache: npm
4351
- run: npm clean-install
4452
- run: corepack npm audit signatures
45-
- name: Ensure dependencies are compatible with the engines range
46-
run: npx ls-engines
47-
- run: npm run lint
48-
# https://github.com/lirantal/lockfile-lint#readme
49-
- name: Scan lockfile for security issues
50-
run: npx lockfile-lint --path package-lock.json
53+
- run: npm test
54+
55+
test:
56+
runs-on: ubuntu-latest
57+
needs:
58+
- test_dev
59+
- test_matrix
60+
if: ${{ !cancelled() }}
61+
steps:
5162
- name: All matrix versions passed
5263
if: ${{ !(contains(needs.*.result, 'failure')) }}
5364
run: exit 0

0 commit comments

Comments
 (0)