Skip to content

Commit b9c9081

Browse files
committed
chore(ci): try to add Node.js v20 to build matrix
1 parent 5cab7f3 commit b9c9081

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14+
- node-version: '20'
1415
- node-version: '22'
1516
- node-version: '24'
1617
steps:
@@ -19,5 +20,10 @@ jobs:
1920
- uses: ./.github/actions/prepare
2021
with:
2122
node-version: ${{ matrix.node-version }}
23+
- name: Test (Node v20.x)
24+
if: matrix.node-version == '20'
25+
# CAUTION: this only works in POSIX environments
26+
run: npm run test:node20
2227
- name: Test
23-
run: npm test
28+
if: matrix.node-version != '20'
29+
run: npm run test:runtime

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@
5959
"lint:types": "tsc --noEmit",
6060
"prepare": "husky; run-s -s build",
6161
"test": "run-s test:runtime",
62-
"test:runtime": "node --import tsx --test --test-reporter=spec \"test/**/*.test.ts\"",
63-
"test:watch": "node --import tsx --test --test-reporter=spec --watch \"test/**/*.test.ts\""
62+
"test:base": "node --import tsx --test --test-reporter=spec",
63+
"test:node20": "node --import tsx --test --test-reporter=spec test/*.test.ts",
64+
"test:runtime": "npm run test:base -- \"test/*.test.ts\"",
65+
"test:watch": "npm run test:base -- --watch \"test/*.test.ts\""
6466
},
6567
"devDependencies": {
6668
"@commitlint/cli": "20.2.0",

0 commit comments

Comments
 (0)