Skip to content

Commit ceb666c

Browse files
authored
GitHub Actions: Test on current versions of Node.js
https://nodejs.org/en/about/previous-releases
1 parent a2e10e6 commit ceb666c

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node: [18.12.0, 20.9.0]
16+
node: [18.20.4, 20.18.0, 22.10.0]
1717
steps:
1818
- uses: actions/setup-node@v4
1919
with:
@@ -33,11 +33,7 @@ jobs:
3333
runs-on: windows-2019
3434
strategy:
3535
matrix:
36-
# FIXME: Node.js 20.9.0 is currently broken on Windows, in the `registerFont` test:
37-
# ENOENT: no such file or directory, lstat 'D:\a\node-canvas\node-canvas\examples\pfennigFont\pfennigMultiByte🚀.ttf'
38-
# ref: https://github.com/nodejs/node/issues/48673
39-
# ref: https://github.com/nodejs/node/pull/50650
40-
node: [18.12.0]
36+
node: [18.20.4, 20.18.0, 22.10.0]
4137
steps:
4238
- uses: actions/setup-node@v4
4339
with:
@@ -49,7 +45,7 @@ jobs:
4945
Expand-Archive gtk.zip -DestinationPath "C:\GTK"
5046
Invoke-WebRequest "https://downloads.sourceforge.net/project/libjpeg-turbo/2.0.4/libjpeg-turbo-2.0.4-vc64.exe" -OutFile "libjpeg.exe" -UserAgent NativeHost
5147
.\libjpeg.exe /S
52-
npm install -g node-gyp@8
48+
npm install -g node-gyp@10
5349
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
5450
- name: Install
5551
run: npm install --build-from-source
@@ -58,10 +54,10 @@ jobs:
5854

5955
macOS:
6056
name: Test on macOS
61-
runs-on: macos-12
57+
runs-on: macos-15
6258
strategy:
6359
matrix:
64-
node: [18.12.0, 20.9.0]
60+
node: [18.20.4, 20.18.0, 22.10.0]
6561
steps:
6662
- uses: actions/setup-node@v4
6763
with:
@@ -70,7 +66,6 @@ jobs:
7066
- name: Install Dependencies
7167
run: |
7268
brew update
73-
brew install python3 || : # python doesn't need to be linked
7469
brew install pkg-config cairo pango libpng jpeg giflib librsvg
7570
pip install setuptools
7671
- name: Install
@@ -84,7 +79,7 @@ jobs:
8479
steps:
8580
- uses: actions/setup-node@v4
8681
with:
87-
node-version: 20.9.0
82+
node-version: 22.10.0
8883
- uses: actions/checkout@v4
8984
- name: Install
9085
run: npm install --ignore-scripts

0 commit comments

Comments
 (0)