Skip to content

Commit 57fa7e6

Browse files
committed
put everything back in the firestore build
1 parent 179e3b4 commit 57fa7e6

File tree

1 file changed

+9
-81
lines changed

1 file changed

+9
-81
lines changed

.github/workflows/test-changed-firestore.yml

Lines changed: 9 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ jobs:
7474
if: ${{ !cancelled() && steps.build.outcome == 'success' && steps.check-changed.outcome != 'success' }}
7575
uses: actions/upload-artifact@v4
7676
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: .
8179
retention-days: ${{ env.artifactRetentionDays }}
8280

8381
compat-test-chrome:
@@ -94,20 +92,10 @@ jobs:
9492
- uses: actions/setup-node@v4
9593
with:
9694
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
10695
- name: Download build archive
10796
uses: actions/download-artifact@v4
10897
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 }}
11199
- name: Run compat tests
112100
run: cd packages/firestore-compat && yarn run test:ci
113101

@@ -128,20 +116,10 @@ jobs:
128116
- uses: actions/setup-node@v4
129117
with:
130118
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
140119
- name: Download build archive
141120
uses: actions/download-artifact@v4
142121
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 }}
145123
- name: Run tests
146124
run: cd packages/firestore && yarn run ${{ matrix.test-name }}
147125
env:
@@ -164,19 +142,10 @@ jobs:
164142
- uses: actions/setup-node@v4
165143
with:
166144
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
176145
- name: Download build archive
177146
uses: actions/download-artifact@v4
178147
with:
179-
name: dists-changed-firestore-${{ github.sha }}
148+
name: build-changed-firestore-${{ github.sha }}
180149
- name: Test setup against nightly Firestore
181150
env:
182151
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.FIRESTORE_SDK_NIGHTLY_PROJECT_JSON }}
@@ -205,20 +174,10 @@ jobs:
205174
- uses: actions/setup-node@v4
206175
with:
207176
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
217177
- name: Download build archive
218178
uses: actions/download-artifact@v4
219179
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 }}
222181
- name: Run compat tests
223182
run: cd packages/firestore-compat && xvfb-run yarn run test:ci
224183
env:
@@ -243,21 +202,10 @@ jobs:
243202
- name: Download build archive
244203
uses: actions/download-artifact@v4
245204
with:
246-
name: dists-changed-firestore-${{ github.sha }}
247-
- uses: actions/checkout@v4
205+
name: build-changed-firestore-${{ github.sha }}
248206
- uses: actions/setup-node@v4
249207
with:
250208
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
261209
- name: Run tests
262210
run: cd packages/firestore && xvfb-run yarn run ${{ matrix.test-name }}
263211
env:
@@ -270,24 +218,13 @@ jobs:
270218
needs: build
271219
if: ${{ needs.build.outputs.changed == 'true'}}
272220
steps:
273-
- uses: actions/checkout@v4
274221
- uses: actions/setup-node@v4
275222
with:
276223
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
286224
- name: Download build archive
287225
uses: actions/download-artifact@v4
288226
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 }}
291228
- run: npx playwright install webkit
292229
- name: Run compat tests
293230
run: cd packages/firestore-compat && yarn run test:ci
@@ -310,19 +247,10 @@ jobs:
310247
- name: Download build archive
311248
uses: actions/download-artifact@v4
312249
with:
313-
name: dists-changed-firestore-${{ github.sha }}
250+
name: build-changed-firestore-${{ github.sha }}
314251
- uses: actions/setup-node@v4
315252
with:
316253
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
326254
- run: cp config/ci.config.json config/project.json
327255
- run: npx playwright install webkit
328256
- name: Run tests

0 commit comments

Comments
 (0)