Skip to content

Commit e366ae6

Browse files
committed
ci: update Node.js test matrix to 14/20/24
Drop dead Node versions (16, 18). Use a sparse matrix: 14 as the compatibility floor, 20 across all platforms, and 24 as the current LTS ceiling. Build releases with 22.
1 parent 6530bab commit e366ae6

3 files changed

Lines changed: 16 additions & 22 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: node
2424
uses: actions/setup-node@v3
2525
with:
26-
node-version: 16
26+
node-version: 22
2727
cache: "npm"
2828
- name: MSVC (windows)
2929
uses: ilammy/msvc-dev-cmd@v1
@@ -53,7 +53,7 @@ jobs:
5353
- name: node
5454
uses: actions/setup-node@v3
5555
with:
56-
node-version: 16
56+
node-version: 22
5757
cache: "npm"
5858
registry-url: https://registry.npmjs.org
5959
- name: install

.github/workflows/run-all-tests-main.yaml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [windows-latest, ubuntu-latest, macos-latest]
18-
node: [16]
18+
node: [20]
1919
include:
20-
# Test LTS versions on main
21-
# 18 on Ubuntu is sufficient, and 20 already tested in PR
20+
# Floor: legacy compatibility check
2221
- os: ubuntu-latest
23-
node: 18
22+
node: 14
23+
# Ceiling: current LTS
24+
- os: ubuntu-latest
25+
node: 24
2426
steps:
2527
- name: checkout
2628
uses: actions/checkout@v3
@@ -68,7 +70,7 @@ jobs:
6870
- name: node
6971
uses: actions/setup-node@v3
7072
with:
71-
node-version: 16
73+
node-version: 22
7274
cache: "npm"
7375
- name: install dependencies
7476
run: npm ci
@@ -85,11 +87,11 @@ jobs:
8587
steps:
8688
- name: checkout
8789
uses: actions/checkout@v3
88-
# Build with node.js 16
90+
# Build with node.js 22
8991
- name: node
9092
uses: actions/setup-node@v3
9193
with:
92-
node-version: 16
94+
node-version: 22
9395
cache: "npm"
9496
- name: pack jazzer.js
9597
run: cd end-to-end && ./package-jazzer-js.sh
@@ -106,26 +108,18 @@ jobs:
106108
- name: run tests
107109
run: cd end-to-end && npx jest
108110

109-
- name: "node 16"
110-
uses: actions/setup-node@v3
111-
with:
112-
node-version: 16
113-
cache: "npm"
114-
- name: run tests
115-
run: cd end-to-end && npx jest
116-
117-
- name: "node 18"
111+
- name: "node 20"
118112
uses: actions/setup-node@v3
119113
with:
120-
node-version: 18
114+
node-version: 20
121115
cache: "npm"
122116
- name: run tests
123117
run: cd end-to-end && npx jest
124118

125-
- name: "node 20"
119+
- name: "node 24"
126120
uses: actions/setup-node@v3
127121
with:
128-
node-version: 20
122+
node-version: 24
129123
cache: "npm"
130124
- name: run tests
131125
run: cd end-to-end && npx jest

.github/workflows/run-all-tests-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: node
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: 16
21+
node-version: 22
2222
cache: "npm"
2323
- name: install dependencies
2424
run: npm ci

0 commit comments

Comments
 (0)