Skip to content

Commit b464efc

Browse files
Update CI: modern Node versions, fix macOS ARM64 compat
- Drop EOL Node.js 10.x and 12.x from matrix - Add Node.js 18.x and 20.x - Update actions/checkout and actions/setup-node to v4 - Only trigger on 2.x branch
1 parent a1e5e2d commit b464efc

1 file changed

Lines changed: 23 additions & 28 deletions

File tree

.github/workflows/test.yml

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,35 @@
1-
name: Node CI
1+
name: Test
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [2.x]
6+
pull_request:
7+
branches: [2.x]
48

59
jobs:
6-
build:
10+
test:
711
name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
812

913
strategy:
1014
matrix:
1115
os: [ubuntu-latest, macos-latest, windows-latest]
12-
node-version: [10.x, 12.x, 14.x, 16.x]
16+
node-version: [14.x, 16.x, 18.x, 20.x]
1317

1418
runs-on: ${{ matrix.os }}
1519

1620
steps:
17-
- uses: actions/checkout@v1
18-
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
24-
- name: Print Node.js Version
25-
run: node --version
26-
27-
- name: Install Dependencies
28-
run: npm install
29-
env:
30-
CI: true
31-
32-
- name: Run "build" step
33-
run: npm run build --if-present
34-
env:
35-
CI: true
36-
37-
- name: Run tests
38-
run: npm test
39-
env:
40-
CI: true
21+
- uses: actions/checkout@v4
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Install Dependencies
29+
run: npm install
30+
31+
- name: Build
32+
run: npm run build --if-present
33+
34+
- name: Test
35+
run: npm test

0 commit comments

Comments
 (0)