@@ -5,15 +5,15 @@ on: [push]
55jobs :
66 build :
77 name : " Deno tests and build npm files"
8- runs-on : ubuntu-22.04
8+ runs-on : ubuntu-latest
99 steps :
1010 - name : Checkout repo
1111 uses : actions/checkout@v3
1212
1313 - name : Setup Deno
14- uses : denoland/setup-deno@v1.1.1
14+ uses : denoland/setup-deno@v2
1515 with :
16- deno-version : v1 .x
16+ deno-version : v2 .x
1717
1818 - name : Check formatting
1919 run : deno fmt --check
@@ -24,13 +24,13 @@ jobs:
2424 - name : Run tests
2525 env :
2626 SERPAPI_TEST_KEY : ${{ secrets.SERPAPI_TEST_KEY }}
27- run : deno task test:ci
27+ run : deno task test
2828
2929 - name : Setup Node
30- uses : actions/setup-node@v3
30+ uses : actions/setup-node@v4
3131 with :
32- node-version : ' 18.x ' # Build files using a fixed node version
33- registry-url : ' https://registry.npmjs.org'
32+ node-version : " 22.x " # Build files using a fixed node version
33+ registry-url : " https://registry.npmjs.org"
3434
3535 - name : Build npm files
3636 run : deno task npm
3939 run : zip npm.zip ./npm -r
4040
4141 - name : Upload build files for smoke tests
42- uses : actions/upload-artifact@v3
42+ uses : actions/upload-artifact@v4
4343 with :
4444 name : npm
4545 path : npm.zip
@@ -48,10 +48,29 @@ jobs:
4848 smoke-tests-commonjs :
4949 name : " Smoke tests (CommonJS)"
5050 needs : build
51- runs-on : ubuntu-22.04
51+ runs-on : ubuntu-latest
5252 strategy :
5353 matrix :
54- node-version : [7.x, 8.x, 9.x, 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x, 19.x]
54+ node-version : [
55+ 7.x,
56+ 8.x,
57+ 9.x,
58+ 10.x,
59+ 11.x,
60+ 12.x,
61+ 13.x,
62+ 14.x,
63+ 15.x,
64+ 16.x,
65+ 17.x,
66+ 18.x,
67+ 19.x,
68+ 20.x,
69+ 21.x,
70+ 22.x,
71+ 23.x,
72+ 24.x,
73+ ]
5574 include :
5675 - command : test
5776 - command : test:use-openssl-ca
@@ -63,16 +82,16 @@ jobs:
6382
6483 steps :
6584 - name : Checkout repo
66- uses : actions/checkout@v3
85+ uses : actions/checkout@v4
6786
6887 - name : Setup Node
69- uses : actions/setup-node@v3
88+ uses : actions/setup-node@v4
7089 with :
7190 node-version : ${{ matrix.node-version }}
72- registry-url : ' https://registry.npmjs.org'
91+ registry-url : " https://registry.npmjs.org"
7392
7493 - name : Download build files
75- uses : actions/download-artifact@v3
94+ uses : actions/download-artifact@v4
7695 with :
7796 name : npm
7897
@@ -90,22 +109,34 @@ jobs:
90109 smoke-tests-esm :
91110 name : " Smoke tests (ESM)"
92111 needs : build
93- runs-on : ubuntu-22.04
112+ runs-on : ubuntu-latest
94113 strategy :
95114 matrix :
96- node-version : [14.x, 15.x, 16.x, 17.x, 18.x, 19.x]
115+ node-version : [
116+ 14.x,
117+ 15.x,
118+ 16.x,
119+ 17.x,
120+ 18.x,
121+ 19.x,
122+ 20.x,
123+ 21.x,
124+ 22.x,
125+ 23.x,
126+ 24.x,
127+ ]
97128 steps :
98129 - name : Checkout repo
99- uses : actions/checkout@v3
130+ uses : actions/checkout@v4
100131
101132 - name : Setup Node
102- uses : actions/setup-node@v3
133+ uses : actions/setup-node@v4
103134 with :
104135 node-version : ${{ matrix.node-version }}
105- registry-url : ' https://registry.npmjs.org'
136+ registry-url : " https://registry.npmjs.org"
106137
107138 - name : Download build files
108- uses : actions/download-artifact@v3
139+ uses : actions/download-artifact@v4
109140 with :
110141 name : npm
111142
0 commit comments