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
8
8
types :
9
9
- opened
10
10
- synchronize
11
+
12
+ permissions :
13
+ contents : read
14
+
15
+ env :
16
+ FORCE_COLOR : 1
17
+ NPM_CONFIG_COLOR : always
18
+
11
19
jobs :
12
20
test_matrix :
13
21
strategy :
14
22
matrix :
15
23
node-version :
16
- - 18.17.0
17
- - 20.0.0
24
+ - 20.8.1
18
25
- 20
26
+ - 21
19
27
os :
20
28
- ubuntu-latest
21
29
runs-on : " ${{ matrix.os }}"
@@ -27,18 +35,30 @@ jobs:
27
35
node-version : " ${{ matrix.node-version }}"
28
36
cache : npm
29
37
- run : npm clean-install
30
- - run : " npm run test:ci"
31
- test :
38
+ - run : npm test
39
+
40
+ test_dev :
32
41
runs-on : ubuntu-latest
33
- needs : test_matrix
34
42
steps :
35
43
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36
44
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
37
45
with :
38
- node-version : " lts/* "
46
+ node-version-file : .nvmrc
39
47
cache : npm
40
48
- run : npm clean-install
41
49
- 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