File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 8
8
build-and-test :
9
9
strategy :
10
10
matrix :
11
- node : [16.x, 18.x, 20.x, 22.x]
11
+ node :
12
+ - version : 16.x
13
+ - version : 18.x
14
+ env : NODE_OPTIONS=--openssl-legacy-provider
15
+ - version : 20.x
16
+ env : NODE_OPTIONS=--openssl-legacy-provider
17
+ - version : 22.x
18
+ env : NODE_OPTIONS=--openssl-legacy-provider
12
19
runs-on : ubuntu-latest
13
- name : Tests on Node.js v${{ matrix.node }}
20
+ name : Tests on Node.js v${{ matrix.node.version }}
14
21
steps :
15
22
- name : Checkout repo
16
23
uses : actions/checkout@v3
17
24
18
25
- name : Setup node
19
26
uses : actions/setup-node@v3
20
27
with :
21
- node-version : ${{ matrix.node }}
28
+ node-version : ${{ matrix.node.version }}
22
29
23
30
- name : Download deps
24
31
uses : bahmutov/npm-install@v1
25
32
with :
26
33
install-command : npm ci --legacy-peer-deps
27
34
28
35
- name : Build sources
29
- run : npm run build
36
+ run : ${{ matrix.node.env }} npm run build
30
37
31
38
- name : Run tests
32
- run : npm run test
39
+ run : ${{ matrix.node.env }} npm run test
33
40
34
41
lint :
35
42
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments