16
16
- uses : actions/checkout@v2
17
17
- uses : actions/setup-node@v2
18
18
with :
19
- node-version : 16
19
+ node-version : lts/*
20
20
- uses : ipfs/aegir/actions/cache-node-modules@master
21
21
with :
22
22
build : |
30
30
- uses : actions/checkout@v2
31
31
- uses : actions/setup-node@v2
32
32
with :
33
- node-version : 16
33
+ node-version : lts/*
34
34
- uses : ipfs/aegir/actions/cache-node-modules@master
35
35
with :
36
36
build : |
41
41
npm run dep-check -- -- -- -- --unused
42
42
43
43
test-node :
44
- name : Unit tests ${{ matrix.project }} node ${{ matrix.node }} ${{ matrix.os }}
44
+ name : Unit tests node ${{ matrix.node }} ${{ matrix.os }}
45
45
needs : build
46
46
runs-on : ${{ matrix.os }}
47
47
strategy :
@@ -62,11 +62,10 @@ jobs:
62
62
- run : npm run test:node -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
63
63
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
64
64
with :
65
- directory : ' **/.nyc_output'
66
65
flags : node
67
66
68
67
test-chrome :
69
- name : Unit tests ${{ matrix.project }} ${{ matrix.browser }} ${{ matrix.type }}
68
+ name : Unit tests chrome
70
69
needs : build
71
70
runs-on : ubuntu-latest
72
71
steps :
@@ -83,21 +82,12 @@ jobs:
83
82
- run : npm run test:chrome -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
84
83
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
85
84
with :
86
- directory : ' **/.nyc_output'
87
85
flags : chrome
88
86
89
87
test-chrome-webworker :
90
- name : Unit tests ${{ matrix.project }} ${{ matrix.browser }} ${{ matrix.type }}
88
+ name : Unit tests chrome-webworker
91
89
needs : build
92
90
runs-on : ubuntu-latest
93
- strategy :
94
- matrix :
95
- browser :
96
- - chromium
97
- - firefox
98
- type :
99
- - browser
100
- - webworker
101
91
steps :
102
92
- uses : actions/checkout@v2
103
93
with :
@@ -112,11 +102,10 @@ jobs:
112
102
- run : npm run test:chrome-webworker -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
113
103
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
114
104
with :
115
- directory : ' **/.nyc_output'
116
105
flags : chrome-webworker
117
106
118
107
test-firefox :
119
- name : Unit tests ${{ matrix.project }} ${{ matrix.browser }} ${{ matrix.type }}
108
+ name : Unit tests firefox
120
109
needs : build
121
110
runs-on : ubuntu-latest
122
111
steps :
@@ -133,21 +122,12 @@ jobs:
133
122
- run : npm run test:firefox -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
134
123
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
135
124
with :
136
- directory : ' **/.nyc_output'
137
125
flags : firefox
138
126
139
127
test-firefox-webworker :
140
- name : Unit tests ${{ matrix.project }} ${{ matrix.browser }} ${{ matrix.type }}
128
+ name : Unit tests firefox-webworker
141
129
needs : build
142
130
runs-on : ubuntu-latest
143
- strategy :
144
- matrix :
145
- browser :
146
- - chromium
147
- - firefox
148
- type :
149
- - browser
150
- - webworker
151
131
steps :
152
132
- uses : actions/checkout@v2
153
133
with :
@@ -159,10 +139,10 @@ jobs:
159
139
with :
160
140
build : |
161
141
npm run link
142
+ - run : npx playwright install --with-deps
162
143
- run : npm run test:firefox-webworker -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
163
144
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
164
145
with :
165
- directory : ' **/.nyc_output'
166
146
flags : firefox-webworker
167
147
168
148
test-electron-main :
@@ -175,7 +155,7 @@ jobs:
175
155
fetch-depth : 0
176
156
- uses : actions/setup-node@v2
177
157
with :
178
- node-version : 16
158
+ node-version : lts/*
179
159
- uses : ipfs/aegir/actions/cache-node-modules@master
180
160
with :
181
161
build : |
@@ -185,7 +165,6 @@ jobs:
185
165
run : npm run test:electron-main -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail
186
166
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
187
167
with :
188
- directory : ' **/.nyc_output'
189
168
flags : electron-main
190
169
191
170
test-electron-renderer :
@@ -198,7 +177,7 @@ jobs:
198
177
fetch-depth : 0
199
178
- uses : actions/setup-node@v2
200
179
with :
201
- node-version : 16
180
+ node-version : lts/*
202
181
- uses : ipfs/aegir/actions/cache-node-modules@master
203
182
with :
204
183
build : |
@@ -208,12 +187,10 @@ jobs:
208
187
run : npm run test:electron-renderer -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail
209
188
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
210
189
with :
211
- directory : ' **/.nyc_output'
212
190
flags : electron-renderer
213
191
214
192
test-interop :
215
193
name : Interop tests ${{ matrix.project }} ${{ matrix.type }}
216
- needs : build
217
194
runs-on : ubuntu-latest
218
195
strategy :
219
196
matrix :
@@ -228,20 +205,22 @@ jobs:
228
205
fetch-depth : 0
229
206
- uses : actions/setup-node@v2
230
207
with :
231
- node-version : 16
208
+ node-version : lts/*
232
209
- uses : ipfs/aegir/actions/cache-node-modules@master
233
210
with :
234
211
build : |
235
212
npm run link
236
- - run : npm run test:interop -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -- -t ${{ matrix.type }}
213
+ - run : |
214
+ npm install
215
+ npm run build
216
+ npm run link
217
+ npm run test:interop -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -- -t ${{ matrix.type }}
237
218
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
238
219
with :
239
- directory : ' **/.nyc_output'
240
220
flags : interop-${{ matrix.type }}
241
221
242
222
test-interface :
243
223
name : Interface tests ${{ matrix.suite }} ${{ matrix.type }}
244
- needs : build
245
224
runs-on : ubuntu-latest
246
225
strategy :
247
226
matrix :
@@ -261,15 +240,14 @@ jobs:
261
240
fetch-depth : 0
262
241
- uses : actions/setup-node@v2
263
242
with :
264
- node-version : 16
265
- - uses : ipfs/aegir/actions/cache-node-modules@master
266
- with :
267
- build : |
268
- npm run link
269
- - run : npm run ${{ matrix.suite }} -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -t ${{ matrix.type }}
243
+ node-version : lts/*
244
+ - run : |
245
+ npm install
246
+ npm run build
247
+ npm run link
248
+ npm run ${{ matrix.suite }} -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -t ${{ matrix.type }}
270
249
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
271
250
with :
272
- directory : ' **/.nyc_output'
273
251
flags : interface-${{ matrix.type }}
274
252
275
253
test-interface-message-port-client :
@@ -282,11 +260,12 @@ jobs:
282
260
fetch-depth : 0
283
261
- uses : actions/setup-node@v2
284
262
with :
285
- node-version : 16
263
+ node-version : lts/*
286
264
- uses : ipfs/aegir/actions/cache-node-modules@master
287
265
with :
288
266
build : |
289
267
npm run link
268
+ - run : npx playwright install --with-deps
290
269
- run : npm run test:interface:message-port-client -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
291
270
292
271
release :
@@ -314,6 +293,8 @@ jobs:
314
293
manifest-file : .release-please-manifest.json
315
294
config-file : .release-please.json
316
295
- uses : actions/checkout@v2
296
+ with :
297
+ fetch-depth : 0
317
298
- uses : actions/setup-node@v2
318
299
with :
319
300
node-version : lts/*
0 commit comments