@@ -29,13 +29,66 @@ jobs:
29
29
strategy :
30
30
fail-fast : false
31
31
matrix :
32
- node-version : [16, 18 ]
32
+ node-version : [18, 20, 21 ]
33
33
34
34
steps :
35
35
- name : Checkout
36
36
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
37
37
38
+ - name : Install Required Libraries
39
+ run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
40
+
38
41
- uses : the-guild-org/shared-config/setup@main
42
+ continue-on-error : true
43
+ name : setup env
44
+ with :
45
+ nodeVersion : ${{matrix.node-version}}
46
+
47
+ - name : Cache Jest
48
+ uses : actions/cache@v3
49
+ with :
50
+ path : .cache/jest
51
+ key : ${{ runner.os }}-${{matrix.node-version}}-jest-unit-${{ hashFiles('yarn.lock') }}
52
+ restore-keys : |
53
+ ${{runner.os}}-${{matrix.node-version}}-jest-unit-
54
+
55
+ - name : Remove node-libcurl
56
+ run : rm -rf node_modules/node-libcurl
57
+
58
+ - name : Run Tests
59
+ uses : nick-fields/retry@v2
60
+ with :
61
+ timeout_minutes : 10
62
+ max_attempts : 3
63
+ command : yarn test
64
+
65
+ unit-leaks :
66
+ name : unit / leak / node ${{matrix.node-version}}
67
+ timeout-minutes : 60
68
+ runs-on : ubuntu-latest
69
+ strategy :
70
+ fail-fast : false
71
+ matrix :
72
+ node-version : [18]
73
+
74
+ steps :
75
+ - name : Checkout
76
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
77
+
78
+ - name : Install Required Libraries
79
+ run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
80
+
81
+ - name : Use Node
82
+ uses : actions/setup-node@master
83
+ with :
84
+ node-version : ${{ matrix.node-version }}
85
+ cache : ' yarn'
86
+
87
+ - name : Remove node-libcurl
88
+ run : node scripts/remove-node-libcurl.cjs
89
+
90
+ - uses : the-guild-org/shared-config/setup@main
91
+ continue-on-error : true
39
92
name : setup env
40
93
with :
41
94
nodeVersion : ${{matrix.node-version}}
65
118
strategy :
66
119
fail-fast : false
67
120
matrix :
68
- node-version : [16, 18 ]
121
+ node-version : [18, 20, 21 ]
69
122
# Service containers to run with `runner-job`
70
123
services :
71
124
# Label used to access the service container
@@ -105,7 +158,11 @@ jobs:
105
158
- name : Checkout
106
159
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
107
160
161
+ - name : Install Required Libraries
162
+ run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
163
+
108
164
- uses : the-guild-org/shared-config/setup@main
165
+ continue-on-error : true
109
166
name : setup env
110
167
with :
111
168
nodeVersion : ${{matrix.node-version}}
@@ -134,7 +191,7 @@ jobs:
134
191
- name : Build Test Artifacts
135
192
run : yarn build-test-artifacts
136
193
- name : Test
137
- run : yarn test:integration
194
+ run : yarn test:integration -u
138
195
139
196
integration-leak :
140
197
name : integration / leak / node ${{matrix.node-version}}
@@ -143,7 +200,7 @@ jobs:
143
200
strategy :
144
201
fail-fast : false
145
202
matrix :
146
- node-version : [16, 18]
203
+ node-version : [18]
147
204
# Service containers to run with `runner-job`
148
205
services :
149
206
# Label used to access the service container
@@ -183,7 +240,20 @@ jobs:
183
240
- name : Checkout
184
241
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
185
242
243
+ - name : Install Required Libraries
244
+ run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
245
+
246
+ - name : Use Node
247
+ uses : actions/setup-node@master
248
+ with :
249
+ node-version : ${{ matrix.node-version }}
250
+ cache : ' yarn'
251
+
252
+ - name : Remove node-libcurl
253
+ run : node scripts/remove-node-libcurl.cjs
254
+
186
255
- uses : the-guild-org/shared-config/setup@main
256
+ continue-on-error : true
187
257
name : setup env
188
258
with :
189
259
nodeVersion : ${{matrix.node-version}}
@@ -219,7 +289,7 @@ jobs:
219
289
with :
220
290
timeout_minutes : 10
221
291
max_attempts : 3
222
- command : yarn test:integration:leak
292
+ command : yarn test:integration:leak -u
223
293
224
294
integrity-check :
225
295
name : integrity-check / node ${{matrix.node-version}}
@@ -228,12 +298,16 @@ jobs:
228
298
strategy :
229
299
fail-fast : false
230
300
matrix :
231
- node-version : [16, 18 ]
301
+ node-version : [18, 20, 21 ]
232
302
steps :
233
303
- name : Checkout
234
304
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
235
305
306
+ - name : Install Required Libraries
307
+ run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
308
+
236
309
- uses : the-guild-org/shared-config/setup@main
310
+ continue-on-error : true
237
311
name : setup env
238
312
with :
239
313
nodeVersion : ${{matrix.node-version}}
0 commit comments