File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 strategy :
1212 matrix :
1313 include :
14+ - node-version : ' 20'
1415 - node-version : ' 22'
1516 - node-version : ' 24'
1617 steps :
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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments