@@ -25,19 +25,19 @@ jobs:
25
25
- name : Setup node
26
26
uses : actions/setup-node@v2-beta
27
27
with :
28
- node-version : ' 16 '
28
+ node-version : ' 14 '
29
29
- name : node_modules cache
30
30
uses : actions/cache@v2
31
31
id : node_modules_cache
32
32
with :
33
33
path : ./node_modules
34
- key : ${{ runner.os }}-16 -12-9-9-6-node_modules-${{ hashFiles('yarn.lock') }}
34
+ key : ${{ runner.os }}-14 -12-9-9-6-node_modules-${{ hashFiles('yarn.lock') }}
35
35
restore-keys : |
36
- ${{ runner.os }}-16 -12-9-9-6-node_modules-
37
- ${{ runner.os }}-16 -12-9-9-
38
- ${{ runner.os }}-16 -12-9-
39
- ${{ runner.os }}-16 -12-
40
- ${{ runner.os }}-16 -
36
+ ${{ runner.os }}-14 -12-9-9-6-node_modules-
37
+ ${{ runner.os }}-14 -12-9-9-
38
+ ${{ runner.os }}-14 -12-9-
39
+ ${{ runner.os }}-14 -12-
40
+ ${{ runner.os }}-14 -
41
41
- name : Yarn offline cache
42
42
if : steps.node_modules_cache.outputs.cache-hit != 'true'
43
43
uses : actions/cache@v2
@@ -68,19 +68,11 @@ jobs:
68
68
strategy :
69
69
matrix :
70
70
os : [ ubuntu-latest, macos-latest, windows-latest ]
71
- node : ["16"]
71
+ node : ["16", "18", "20" ]
72
72
firebase : ["9"]
73
73
firebaseTools : ["12"]
74
74
rxjs : ["7"]
75
- # TODO add ng 12 back in, we need to cut a major at this point and drop
76
75
ng : ["16"]
77
- exclude :
78
- # TODO investigate failures
79
- # https://github.com/angular/angularfire/runs/4174069788
80
- # Can't resolve 'core-js/proposals/reflect-metadata'
81
- - os : ubuntu-latest
82
- node : 14
83
- ng : 13
84
76
fail-fast : false
85
77
name : Test firebase@${{ matrix.firebase }} firebase-tools@${{ matrix.firebaseTools }} ng@${{ matrix.ng }} rxjs@${{ matrix.rxjs}} on ${{ matrix.os }} Node.js ${{ matrix.node }}
86
78
steps :
@@ -122,19 +114,6 @@ jobs:
122
114
yarn add firebase@${{ matrix.firebase }}
123
115
yarn add firebase-tools@${{ matrix.firebaseTools }}
124
116
yarn add rxjs@${{ matrix.rxjs }} --prefer-offline
125
- # Can't update more than one major at a times, take the incremental step
126
- - name : Update to ng@13
127
- run : npx @angular/cli@13 update @angular/core@13 @angular/cli@13 --allow-dirty --force
128
- if : matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
129
- continue-on-error : ${{ matrix.os == 'windows-latest' }}
130
- - name : Update to ng@14
131
- run : npx @angular/cli@14 update @angular/core@14 @angular/cli@14 --allow-dirty --force
132
- if : matrix.ng == '15' || matrix.ng == 'next'
133
- continue-on-error : ${{ matrix.os == 'windows-latest' }}
134
- - name : Update to ng@${{ matrix.ng }}
135
- run : npx @angular/cli@${{ matrix.ng }} update @angular/core@${{ matrix.ng }} @angular/cli@${{ matrix.ng }} --allow-dirty --force
136
- if : matrix.ng != '12'
137
- continue-on-error : ${{ matrix.os == 'windows-latest' }}
138
117
- name : Firebase emulator cache
139
118
uses : actions/cache@v2
140
119
with :
@@ -144,48 +123,22 @@ jobs:
144
123
uses : actions/download-artifact@v2
145
124
- name : Relocate Artifacts
146
125
run : mv angularfire-${{ github.run_id }} dist
147
- - name : Test Node (CJS)
148
- run : |
149
- yarn build:jasmine
150
- yarn test:node
151
- if : matrix.ng == '12'
152
- - name : Test Node (ESM)
126
+ - name : Test Node
153
127
run : |
154
128
yarn build:jasmine
155
129
yarn test:node-esm
156
- if : matrix.ng != '12' && matrix.rxjs == '7'
157
130
- name : Test browser
158
- if : matrix.os == 'ubuntu-latest' && matrix.node == '14' && matrix.firebaseTools == '11 '
131
+ if : matrix.os == 'ubuntu-latest' && matrix.node == '16 '
159
132
run : yarn test:chrome-headless
160
133
- name : ng-build yarn install
161
134
run : |
162
135
cd ./test/ng-build
163
136
yarn --prefer-offline
164
137
yarn add firebase@${{ matrix.firebase }}
165
- - name : Update ng-build to ng@13
166
- run : |
167
- cd ./test/ng-build
168
- npx @angular/cli@13 update @angular/core@13 @angular/cli@13 @nguniversal/express-engine@13 --allow-dirty --force
169
- if : matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
170
- continue-on-error : ${{ matrix.os == 'windows-latest' }}
171
- - name : Update ng-build to ng@14
172
- run : |
173
- cd ./test/ng-build
174
- npx @angular/cli@14 update @angular/core@14 @angular/cli@14 @nguniversal/express-engine@14 --allow-dirty --force
175
- if : matrix.ng == '15' || matrix.ng == 'next'
176
- continue-on-error : ${{ matrix.os == 'windows-latest' }}
177
- - name : Update ng-build to ng@${{ matrix.ng }}
178
- run : |
179
- cd ./test/ng-build
180
- npx @angular/cli@${{ matrix.ng }} update @angular/core@${{ matrix.ng }} @angular/cli@${{ matrix.ng }} @nguniversal/express-engine@${{ matrix.ng }} --allow-dirty --force
181
- if : matrix.ng != '12'
182
- continue-on-error : ${{ matrix.os == 'windows-latest' }}
183
138
- name : ng-build prerender
184
139
run : |
185
140
cd ./test/ng-build
186
141
yarn prerender
187
- # ng 13 is flaking, skip for now
188
- if : matrix.ng != '13'
189
142
190
143
# TODO dry up
191
144
canary :
@@ -246,16 +199,6 @@ jobs:
246
199
yarn add firebase@${{ matrix.firebase }}
247
200
yarn add firebase-tools@${{ matrix.firebaseTools }}
248
201
yarn add rxjs@${{ matrix.rxjs }} --prefer-offline
249
- # Can't update more than one major at a times, take the incremental step
250
- - name : Update to ng@13
251
- run : npx @angular/cli@13 update @angular/core@13 @angular/cli@13 --allow-dirty --force
252
- if : matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
253
- - name : Update to ng@14
254
- run : npx @angular/cli@14 update @angular/core@14 @angular/cli@14 --allow-dirty --force
255
- if : matrix.ng == '15' || matrix.ng == 'next'
256
- - name : Update to ng@${{ matrix.ng }}
257
- run : npx @angular/cli@${{ matrix.ng }} update @angular/core@${{ matrix.ng }} @angular/cli@${{ matrix.ng }} --allow-dirty --force
258
- if : matrix.ng != '12'
259
202
- name : Firebase emulator cache
260
203
uses : actions/cache@v2
261
204
with :
@@ -265,16 +208,10 @@ jobs:
265
208
uses : actions/download-artifact@v2
266
209
- name : Relocate Artifacts
267
210
run : mv angularfire-${{ github.run_id }} dist
268
- - name : Test Node (CJS)
269
- run : |
270
- yarn build:jasmine
271
- yarn test:node
272
- if : matrix.ng == '12'
273
- - name : Test Node (ESM)
211
+ - name : Test Node
274
212
run : |
275
213
yarn build:jasmine
276
214
yarn test:node-esm
277
- if : matrix.ng != '12'
278
215
- name : Test browser
279
216
run : yarn test:chrome-headless
280
217
- name : ng-build yarn install
@@ -288,35 +225,18 @@ jobs:
288
225
cd ./test/ng-build
289
226
sed -i 's/"skipLibCheck": false,/"skipLibCheck": true,/g' tsconfig.json
290
227
if : matrix.firebase == 'canary'
291
- - name : Update ng-build to ng@13
292
- run : |
293
- cd ./test/ng-build
294
- npx @angular/cli@13 update @angular/core@13 @angular/cli@13 @nguniversal/express-engine@13 --allow-dirty --force
295
- if : matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
296
- - name : Update ng-build to ng@14
297
- run : |
298
- cd ./test/ng-build
299
- npx @angular/cli@14 update @angular/core@14 @angular/cli@14 @nguniversal/express-engine@14 --allow-dirty --force
300
- if : matrix.ng == '15' || matrix.ng == 'next'
301
- - name : Update ng-build to ng@${{ matrix.ng }}
302
- run : |
303
- cd ./test/ng-build
304
- npx @angular/cli@${{ matrix.ng }} update @angular/core@${{ matrix.ng }} @angular/cli@${{ matrix.ng }} @nguniversal/express-engine@${{ matrix.ng }} --allow-dirty --force
305
- if : matrix.ng != '12'
306
228
- name : ng-build prerender
307
229
run : |
308
230
cd ./test/ng-build
309
231
yarn prerender
310
- # ng 13 is flaking, skip for now
311
- if : matrix.ng != '13'
312
232
313
233
contribute :
314
234
runs-on : ${{ matrix.os }}
315
235
name : Contribute ${{ matrix.os }} on Node.js ${{ matrix.node }}
316
236
strategy :
317
237
matrix :
318
238
os : [ ubuntu-latest, macos-latest, windows-latest ]
319
- node : ["14", "16" ]
239
+ node : ["14"]
320
240
exclude :
321
241
# we build with this combination, safely skip
322
242
- os : ubuntu-latest
0 commit comments