File tree Expand file tree Collapse file tree 5 files changed +9530
-4048
lines changed Expand file tree Collapse file tree 5 files changed +9530
-4048
lines changed Original file line number Diff line number Diff line change 1+ * text =auto eol =lf
Original file line number Diff line number Diff line change 2424 node-version : lts/*
2525 cache : npm
2626 - run : npm clean-install
27- - run : npm audit signatures
27+ - run : corepack npm audit signatures
2828 - run : npx semantic-release
2929 env :
3030 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -8,14 +8,22 @@ 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+
1119jobs :
1220 test_matrix :
1321 strategy :
1422 matrix :
1523 node-version :
16- - 18.17.0
17- - 20.6.1
24+ - 20.8.1
1825 - 20
26+ - 21
1927 os :
2028 - ubuntu-latest
2129 - macos-latest
@@ -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
44- - run : 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
52+ - run : corepack npm audit signatures
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
You can’t perform that action at this time.
0 commit comments