Skip to content

Commit 848a433

Browse files
committed
Test on new versions of Node
1 parent f5921c7 commit 848a433

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

appveyor.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ environment:
2727
- nodejs_version: "19"
2828
- nodejs_version: "20"
2929
- nodejs_version: "21"
30+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
31+
nodejs_version: "22"
32+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
33+
nodejs_version: "23"
3034

3135
# Install scripts. (runs after repo cloning)
3236
install:
@@ -37,7 +41,8 @@ install:
3741
- set PATH=%APPDATA%\npm;%PATH%
3842
# Typical npm stuff.
3943
- npm install
40-
- IF %nodejs_version% LSS 8 (npm run rebuild-tests) ELSE (npm run rebuild-tests-2017)
44+
- IF %nodejs_version% GEQ 22 set NODE_GYP_FORCE_PYTHON=C:\Python38-x64\python.exe
45+
- IF %nodejs_version% LSS 8 (npm run rebuild-tests-2015) ELSE (npm run rebuild-tests)
4146

4247
# Post-install test scripts.
4348
test_script:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"scripts": {
1111
"test": "tap --gc --stderr test/js/*-test.js",
1212
"test:worker": "node --experimental-worker test/tap-as-worker.js --gc --stderr test/js/*-test.js",
13-
"rebuild-tests": "node-gyp rebuild --msvs_version=2015 --directory test",
14-
"rebuild-tests-2017": "node-gyp rebuild --msvs_version=2017 --directory test",
13+
"rebuild-tests-2015": "node-gyp rebuild --msvs_version=2015 --directory test",
14+
"rebuild-tests": "node-gyp rebuild --directory test",
1515
"docs": "doc/.build.sh"
1616
},
1717
"contributors": [

0 commit comments

Comments
 (0)