88 runs-on : ubuntu-latest
99
1010 steps :
11- - uses : actions/checkout@v3
11+ - uses : actions/checkout@v4
1212
1313 - name : Setup
14- uses : actions/setup-node@v3
14+ uses : actions/setup-node@v4
1515 with :
1616 node-version : 18.x
1717
@@ -29,12 +29,12 @@ jobs:
2929 runs-on : ubuntu-latest
3030
3131 steps :
32- - uses : actions/checkout@v3
32+ - uses : actions/checkout@v4
3333
3434 - name : Setup
35- uses : actions/setup-node@v3
35+ uses : actions/setup-node@v4
3636 with :
37- node-version : 18 .x
37+ node-version : 20 .x
3838
3939 - name : Install dependencies
4040 run : sudo apt-get update && sudo apt-get install -y libunbound-dev |
@@ -54,20 +54,26 @@ jobs:
5454 strategy :
5555 matrix :
5656 os : [ubuntu-latest]
57- node : [14.x, 16.x, 18.x, 20.x]
57+ node : [14.x, 16.x, 18.x, 20.x, 22.x ]
5858
5959 steps :
60- - uses : actions/checkout@v3
60+ - uses : actions/checkout@v4
6161
6262 - name : Setup Node.js
63- uses : actions/setup-node@v3
63+ uses : actions/setup-node@v4
6464 with :
6565 node-version : ${{ matrix.node }}
6666
6767 - name : Install libunbound
6868 if : contains(matrix.os, 'ubuntu')
6969 run : sudo apt-get update && sudo apt-get install -y libunbound-dev
7070
71+ # Pythong 3.10->3.11 broke node-gyp. This upgrades node-gyp for older nodejs.
72+ # https://github.com/nodejs/node-gyp/issues/2219
73+ - name : Update npm.
74+ if : contains(matrix.node, '14.x')
75+ run : npm i -g npm@9
76+
7177 - name : Install dependencies
7278 run : npm install
7379
0 commit comments