File tree Expand file tree Collapse file tree 4 files changed +9752
-4131
lines changed Expand file tree Collapse file tree 4 files changed +9752
-4131
lines changed Original file line number Diff line number Diff line change 2424 cache : npm
2525 node-version : lts/*
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,21 @@ 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
18- - 20
24+ - 20.8.1
25+ - 21
1926 os :
2027 - ubuntu-latest
2128 runs-on : " ${{ matrix.os }}"
@@ -27,22 +34,27 @@ jobs:
2734 node-version : " ${{ matrix.node-version }}"
2835 cache : npm
2936 - 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 :
37+ - run : corepack npm audit signatures
38+ - run : npm test
39+
40+ test_dev :
3441 runs-on : ubuntu-latest
35- needs : test_matrix
36- if : ${{ always() }}
3742 steps :
3843 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39- - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
44+ - name : " Use development Node.js version"
45+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4046 with :
41- node-version : lts/*
47+ node-version-file : .nvmrc
4248 cache : npm
4349 - run : npm clean-install
44- - run : npm audit signatures
45- - run : npm run lint
50+ - run : corepack npm audit signatures
51+ - run : npm test
52+
53+ test :
54+ runs-on : ubuntu-latest
55+ needs : test_matrix
56+ if : ${{ !cancelled() }}
57+ steps :
4658 - name : All matrix versions passed
4759 if : ${{ !(contains(needs.*.result, 'failure')) }}
4860 run : exit 0
You can’t perform that action at this time.
0 commit comments