File tree Expand file tree Collapse file tree 3 files changed +9520
-4041
lines changed Expand file tree Collapse file tree 3 files changed +9520
-4041
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ 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 :
@@ -29,25 +37,28 @@ jobs:
29
37
node-version : " ${{ matrix.node-version }}"
30
38
cache : npm
31
39
- 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 :
34
44
runs-on : ubuntu-latest
35
- needs : test_matrix
36
- if : always()
37
45
steps :
38
46
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39
47
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
40
48
with :
41
- node-version : " lts/* "
49
+ node-version-file : .nvmrc
42
50
cache : npm
43
51
- run : npm clean-install
44
52
- 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 :
51
62
- name : All matrix versions passed
52
63
if : ${{ !(contains(needs.*.result, 'failure')) }}
53
64
run : exit 0
You can’t perform that action at this time.
0 commit comments