6
6
build :
7
7
strategy :
8
8
matrix :
9
- node-version : [12 .x, 14 .x, 16 .x, 18 .x]
9
+ node-version : [14 .x, 16 .x, 18 .x, 19 .x]
10
10
platform :
11
- - os : ubuntu-latest
12
- shell : bash
13
- - os : macos-latest
14
- shell : bash
15
- - os : windows-latest
16
- shell : bash
17
- - os : windows-latest
18
- shell : powershell
11
+ - os : ubuntu-latest
12
+ shell : bash
13
+ - os : macos-latest
14
+ shell : bash
15
+ - os : windows-latest
16
+ shell : bash
17
+ - os : windows-latest
18
+ shell : powershell
19
19
fail-fast : false
20
20
21
21
runs-on : ${{ matrix.platform.os }}
@@ -25,10 +25,12 @@ jobs:
25
25
26
26
steps :
27
27
- name : Checkout Repository
28
- uses : actions/checkout@v1.1.0
28
+ if : ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
29
+ uses : actions/checkout@v3
29
30
30
31
- name : Use Nodejs ${{ matrix.node-version }}
31
- uses : actions/setup-node@v1
32
+ if : ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
33
+ uses : actions/setup-node@v3
32
34
with :
33
35
node-version : ${{ matrix.node-version }}
34
36
@@ -37,13 +39,13 @@ jobs:
37
39
38
40
# skip tests on node <16 on Windows, because npm install npm -g fails
39
41
- name : Use latest npm
40
- if : ${{ (matrix.node-version != '16.x') && (matrix.node-version != '17 .x') && (matrix.platform.os != 'windows-latest') }}
42
+ if : ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18 .x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
41
43
run : npm i -g npm@latest
42
44
43
45
- name : Install dependencies
44
- if : ${{ (matrix.node-version == '16.x') || (matrix.node-version == '17 .x') || (matrix.platform.os != 'windows-latest') }}
46
+ if : ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19 .x') || (matrix.platform.os != 'windows-latest') }}
45
47
run : npm install
46
48
47
49
- name : Run Tests
48
- if : ${{ (matrix.node-version == '16.x') || (matrix.node-version == '17 .x') || (matrix.platform.os != 'windows-latest') }}
50
+ if : ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19 .x') || (matrix.platform.os != 'windows-latest') }}
49
51
run : npm test -- -c -t0
0 commit comments