74
74
if : ${{ !cancelled() && steps.build.outcome == 'success' && steps.check-changed.outcome != 'success' }}
75
75
uses : actions/upload-artifact@v4
76
76
with :
77
- name : dists-changed-firestore-${{ github.sha }}
78
- path : |
79
- packages/**/dist
80
- repo-scripts/**/dist
77
+ name : build-changed-firestore-${{ github.sha }}
78
+ path : .
81
79
retention-days : ${{ env.artifactRetentionDays }}
82
80
83
81
compat-test-chrome :
@@ -94,20 +92,10 @@ jobs:
94
92
- uses : actions/setup-node@v4
95
93
with :
96
94
node-version-file : ' .nvmrc'
97
- cache : yarn
98
- cache-dependency-path : yarn.lock
99
- - name : Restore cached node_modules
100
- uses : actions/cache@v4
101
- id : node_modules
102
- with :
103
- path : " **/node_modules"
104
- key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
105
- - run : yarn install --frozen-lockfile
106
95
- name : Download build archive
107
96
uses : actions/download-artifact@v4
108
97
with :
109
- name : dists-changed-firestore-${{ github.sha }}
110
- - run : cp config/ci.config.json config/project.json
98
+ name : build-changed-firestore-${{ github.sha }}
111
99
- name : Run compat tests
112
100
run : cd packages/firestore-compat && yarn run test:ci
113
101
@@ -128,20 +116,10 @@ jobs:
128
116
- uses : actions/setup-node@v4
129
117
with :
130
118
node-version-file : ' .nvmrc'
131
- cache : yarn
132
- cache-dependency-path : yarn.lock
133
- - name : Restore cached node_modules
134
- uses : actions/cache@v4
135
- id : node_modules
136
- with :
137
- path : " **/node_modules"
138
- key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
139
- - run : yarn install --frozen-lockfile
140
119
- name : Download build archive
141
120
uses : actions/download-artifact@v4
142
121
with :
143
- name : dists-changed-firestore-${{ github.sha }}
144
- - run : cp config/ci.config.json config/project.json
122
+ name : build-changed-firestore-${{ github.sha }}
145
123
- name : Run tests
146
124
run : cd packages/firestore && yarn run ${{ matrix.test-name }}
147
125
env :
@@ -164,19 +142,10 @@ jobs:
164
142
- uses : actions/setup-node@v4
165
143
with :
166
144
node-version-file : ' .nvmrc'
167
- cache : yarn
168
- cache-dependency-path : yarn.lock
169
- - name : Restore cached node_modules
170
- uses : actions/cache@v4
171
- id : node_modules
172
- with :
173
- path : " **/node_modules"
174
- key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
175
- - run : yarn install --frozen-lockfile
176
145
- name : Download build archive
177
146
uses : actions/download-artifact@v4
178
147
with :
179
- name : dists -changed-firestore-${{ github.sha }}
148
+ name : build -changed-firestore-${{ github.sha }}
180
149
- name : Test setup against nightly Firestore
181
150
env :
182
151
INTEG_TESTS_GOOGLE_SERVICES : ${{ secrets.FIRESTORE_SDK_NIGHTLY_PROJECT_JSON }}
@@ -205,20 +174,10 @@ jobs:
205
174
- uses : actions/setup-node@v4
206
175
with :
207
176
node-version-file : ' .nvmrc'
208
- cache : yarn
209
- cache-dependency-path : yarn.lock
210
- - name : Restore cached node_modules
211
- uses : actions/cache@v4
212
- id : node_modules
213
- with :
214
- path : " **/node_modules"
215
- key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
216
- - run : yarn install --frozen-lockfile
217
177
- name : Download build archive
218
178
uses : actions/download-artifact@v4
219
179
with :
220
- name : dists-changed-firestore-${{ github.sha }}
221
- - run : cp config/ci.config.json config/project.json
180
+ name : build-changed-firestore-${{ github.sha }}
222
181
- name : Run compat tests
223
182
run : cd packages/firestore-compat && xvfb-run yarn run test:ci
224
183
env :
@@ -243,21 +202,10 @@ jobs:
243
202
- name : Download build archive
244
203
uses : actions/download-artifact@v4
245
204
with :
246
- name : dists-changed-firestore-${{ github.sha }}
247
- - uses : actions/checkout@v4
205
+ name : build-changed-firestore-${{ github.sha }}
248
206
- uses : actions/setup-node@v4
249
207
with :
250
208
node-version-file : ' .nvmrc'
251
- cache : yarn
252
- cache-dependency-path : yarn.lock
253
- - name : Restore cached node_modules
254
- uses : actions/cache@v4
255
- id : node_modules
256
- with :
257
- path : " **/node_modules"
258
- key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
259
- - run : yarn install --frozen-lockfile
260
- - run : cp config/ci.config.json config/project.json
261
209
- name : Run tests
262
210
run : cd packages/firestore && xvfb-run yarn run ${{ matrix.test-name }}
263
211
env :
@@ -270,24 +218,13 @@ jobs:
270
218
needs : build
271
219
if : ${{ needs.build.outputs.changed == 'true'}}
272
220
steps :
273
- - uses : actions/checkout@v4
274
221
- uses : actions/setup-node@v4
275
222
with :
276
223
node-version-file : ' .nvmrc'
277
- cache : yarn
278
- cache-dependency-path : yarn.lock
279
- - name : Restore cached node_modules
280
- uses : actions/cache@v4
281
- id : node_modules
282
- with :
283
- path : " **/node_modules"
284
- key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
285
- - run : yarn install --frozen-lockfile
286
224
- name : Download build archive
287
225
uses : actions/download-artifact@v4
288
226
with :
289
- name : dists-changed-firestore-${{ github.sha }}
290
- - run : cp config/ci.config.json config/project.json
227
+ name : build-changed-firestore-${{ github.sha }}
291
228
- run : npx playwright install webkit
292
229
- name : Run compat tests
293
230
run : cd packages/firestore-compat && yarn run test:ci
@@ -310,19 +247,10 @@ jobs:
310
247
- name : Download build archive
311
248
uses : actions/download-artifact@v4
312
249
with :
313
- name : dists -changed-firestore-${{ github.sha }}
250
+ name : build -changed-firestore-${{ github.sha }}
314
251
- uses : actions/setup-node@v4
315
252
with :
316
253
node-version-file : ' .nvmrc'
317
- cache : yarn
318
- cache-dependency-path : yarn.lock
319
- - name : Restore cached node_modules
320
- uses : actions/cache@v4
321
- id : node_modules
322
- with :
323
- path : " **/node_modules"
324
- key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
325
- - run : yarn install --frozen-lockfile
326
254
- run : cp config/ci.config.json config/project.json
327
255
- run : npx playwright install webkit
328
256
- name : Run tests
0 commit comments