File tree Expand file tree Collapse file tree 5 files changed +9932
-4398
lines changed Expand file tree Collapse file tree 5 files changed +9932
-4398
lines changed 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.0.0
24+ - 20.8.1
1825 - 20
26+ - 21
1927 os :
2028 - ubuntu-latest
2129 runs-on : " ${{ matrix.os }}"
@@ -27,18 +35,30 @@ jobs:
2735 node-version : " ${{ matrix.node-version }}"
2836 cache : npm
2937 - run : npm clean-install
30- - run : " npm run test:ci"
31- test :
38+ - run : npm test
39+
40+ test_dev :
3241 runs-on : ubuntu-latest
33- needs : test_matrix
3442 steps :
3543 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3644 - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
3745 with :
38- node-version : " lts/* "
46+ node-version-file : .nvmrc
3947 cache : npm
4048 - run : npm clean-install
4149 - run : npm audit signatures
42- - name : Ensure dependencies are compatible with the version of node
43- run : npx ls-engines
44- - run : npm run lint
50+ - run : npm test
51+
52+ test :
53+ runs-on : ubuntu-latest
54+ needs :
55+ - test_dev
56+ - test_matrix
57+ if : ${{ !cancelled() }}
58+ steps :
59+ - name : All matrix versions passed
60+ if : ${{ !(contains(needs.*.result, 'failure')) }}
61+ run : exit 0
62+ - name : Some matrix version failed
63+ if : ${{ contains(needs.*.result, 'failure') }}
64+ run : exit 1
You can’t perform that action at this time.
0 commit comments