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 24
24
cache : npm
25
25
node-version : lts/*
26
26
- run : npm clean-install
27
- - run : npm audit signatures
27
+ - run : corepack npm audit signatures
28
28
- run : npx semantic-release
29
29
env :
30
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -8,14 +8,21 @@ 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.6.1
18
- - 20
24
+ - 20.8.1
25
+ - 21
19
26
os :
20
27
- ubuntu-latest
21
28
runs-on : " ${{ matrix.os }}"
@@ -27,22 +34,27 @@ jobs:
27
34
node-version : " ${{ matrix.node-version }}"
28
35
cache : npm
29
36
- 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 :
34
41
runs-on : ubuntu-latest
35
- needs : test_matrix
36
- if : ${{ always() }}
37
42
steps :
38
43
- 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
40
46
with :
41
- node-version : lts/*
47
+ node-version-file : .nvmrc
42
48
cache : npm
43
49
- 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 :
46
58
- name : All matrix versions passed
47
59
if : ${{ !(contains(needs.*.result, 'failure')) }}
48
60
run : exit 0
You can’t perform that action at this time.
0 commit comments