Skip to content

Commit 247e7d7

Browse files
committed
feat: Added Node.js CI workflow support for v3 and v4 builds
1 parent 4fd29c0 commit 247e7d7

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

.github/workflows/nodejs.yml

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,67 @@ name: Node.js CI
33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
6+
build-v3:
87
runs-on: ubuntu-latest
9-
108
strategy:
119
matrix:
1210
node-version: [18.x]
13-
1411
steps:
1512
- uses: actions/checkout@v2
1613
- name: Use Node.js ${{ matrix.node-version }}
1714
uses: actions/setup-node@v1
1815
with:
1916
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
2223

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
2441

42+
build-v3-windows:
2543
runs-on: windows-latest
26-
2744
strategy:
2845
matrix:
2946
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
3061

62+
build-v4-windows:
63+
runs-on: windows-latest
64+
strategy:
65+
matrix:
66+
node-version: [20.x]
3167
steps:
3268
- name: Configure git
3369
run: git config --global core.autocrlf false
@@ -36,5 +72,9 @@ jobs:
3672
uses: actions/setup-node@v1
3773
with:
3874
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

Comments
 (0)