@@ -3,31 +3,67 @@ name: Node.js CI
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
7
-
6
+ build-v3 :
8
7
runs-on : ubuntu-latest
9
-
10
8
strategy :
11
9
matrix :
12
10
node-version : [18.x]
13
-
14
11
steps :
15
12
- uses : actions/checkout@v2
16
13
- name : Use Node.js ${{ matrix.node-version }}
17
14
uses : actions/setup-node@v1
18
15
with :
19
16
node-version : ${{ matrix.node-version }}
20
- - run : npm install
21
- - run : npm run test
17
+ - name : Prepare v3
18
+ run : scripts/prepare.sh v3
19
+ - name : Install dependencies (v3)
20
+ run : npm install
21
+ - name : Test (v3)
22
+ run : npm run test
22
23
23
- build-windows :
24
+ build-v4 :
25
+ runs-on : ubuntu-latest
26
+ strategy :
27
+ matrix :
28
+ node-version : [20.x]
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+ - name : Use Node.js ${{ matrix.node-version }}
32
+ uses : actions/setup-node@v1
33
+ with :
34
+ node-version : ${{ matrix.node-version }}
35
+ - name : Prepare v4
36
+ run : scripts/prepare.sh v4
37
+ - name : Install dependencies (v4)
38
+ run : npm install
39
+ - name : Test (v4)
40
+ run : npm run test
24
41
42
+ build-v3-windows :
25
43
runs-on : windows-latest
26
-
27
44
strategy :
28
45
matrix :
29
46
node-version : [18.x]
47
+ steps :
48
+ - name : Configure git
49
+ run : git config --global core.autocrlf false
50
+ - uses : actions/checkout@v2
51
+ - name : Use Node.js ${{ matrix.node-version }}
52
+ uses : actions/setup-node@v1
53
+ with :
54
+ node-version : ${{ matrix.node-version }}
55
+ - name : Prepare v3 (Windows)
56
+ run : scripts/prepare.sh v3
57
+ - name : Install dependencies (v3, Windows)
58
+ run : npm install
59
+ - name : Test (v3, Windows)
60
+ run : npm run test
30
61
62
+ build-v4-windows :
63
+ runs-on : windows-latest
64
+ strategy :
65
+ matrix :
66
+ node-version : [20.x]
31
67
steps :
32
68
- name : Configure git
33
69
run : git config --global core.autocrlf false
36
72
uses : actions/setup-node@v1
37
73
with :
38
74
node-version : ${{ matrix.node-version }}
39
- - run : npm install
40
- - run : npm run test
75
+ - name : Prepare v4 (Windows)
76
+ run : scripts/prepare.sh v4
77
+ - name : Install dependencies (v4, Windows)
78
+ run : npm install
79
+ - name : Test (v4, Windows)
80
+ run : npm run test
0 commit comments