Skip to content

Commit f698d70

Browse files
committed
get build before node setup
1 parent 3aac731 commit f698d70

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ jobs:
8383
needs: build
8484
if: ${{ needs.build.outputs.changed == 'true'}}
8585
steps:
86+
- name: Download build archive
87+
uses: actions/download-artifact@v4
88+
with:
89+
name: build-${{ github.sha }}
90+
- name: Unzip build artifact
91+
run: tar xf build.tar.gz
8692
- uses: actions/setup-node@v4
8793
with:
8894
node-version-file: .nvmrc
8995
- name: install Chrome stable
9096
run: |
9197
sudo apt-get update
9298
sudo apt-get install google-chrome-stable
93-
- name: Download build archive
94-
uses: actions/download-artifact@v4
95-
with:
96-
name: build-${{ github.sha }}
97-
- name: Unzip build artifact
98-
run: tar xf build.tar.gz
9999
- name: Test setup and yarn install
100100
run: cp config/ci.config.json config/project.json
101101
- name: Run compat tests
@@ -110,19 +110,19 @@ jobs:
110110
needs: build
111111
if: ${{ needs.build.outputs.changed == 'true'}}
112112
steps:
113+
- name: Download build archive
114+
uses: actions/download-artifact@v4
115+
with:
116+
name: build-${{ github.sha }}
117+
- name: Unzip build artifact
118+
run: tar xf build.tar.gz
113119
- uses: actions/setup-node@v4
114120
with:
115121
node-version-file: .nvmrc
116122
- name: install Chrome stable
117123
run: |
118124
sudo apt-get update
119125
sudo apt-get install google-chrome-stable
120-
- name: Download build archive
121-
uses: actions/download-artifact@v4
122-
with:
123-
name: build-${{ github.sha }}
124-
- name: Unzip build artifact
125-
run: tar xf build.tar.gz
126126
- name: Test setup and yarn install
127127
run: cp config/ci.config.json config/project.json
128128
- name: Run tests
@@ -139,19 +139,19 @@ jobs:
139139
needs: build
140140
if: ${{ github.event_name != 'pull_request' }}
141141
steps:
142+
- name: Download build archive
143+
uses: actions/download-artifact@v4
144+
with:
145+
name: build-${{ github.sha }}
146+
- name: Unzip build artifact
147+
run: tar xf build.tar.gz
142148
- uses: actions/setup-node@v4
143149
with:
144150
node-version-file: .nvmrc
145151
- name: install Chrome stable
146152
run: |
147153
sudo apt-get update
148154
sudo apt-get install google-chrome-stable
149-
- name: Download build archive
150-
uses: actions/download-artifact@v4
151-
with:
152-
name: build-${{ github.sha }}
153-
- name: Unzip build artifact
154-
run: tar xf build.tar.gz
155155
- name: Test setup against nightly Firestore
156156
env:
157157
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.FIRESTORE_SDK_NIGHTLY_PROJECT_JSON }}
@@ -172,19 +172,19 @@ jobs:
172172
needs: build
173173
if: ${{ needs.build.outputs.changed == 'true'}}
174174
steps:
175+
- name: Download build archive
176+
uses: actions/download-artifact@v4
177+
with:
178+
name: build-${{ github.sha }}
179+
- name: Unzip build artifact
180+
run: tar xf build.tar.gz
175181
- name: install Firefox stable
176182
run: |
177183
sudo apt-get update
178184
sudo apt-get install firefox
179185
- uses: actions/setup-node@v4
180186
with:
181187
node-version-file: .nvmrc
182-
- name: Download build archive
183-
uses: actions/download-artifact@v4
184-
with:
185-
name: build-${{ github.sha }}
186-
- name: Unzip build artifact
187-
run: tar xf build.tar.gz
188188
- name: Test setup and yarn install
189189
run: cp config/ci.config.json config/project.json
190190
- name: Run compat tests
@@ -231,15 +231,15 @@ jobs:
231231
needs: build
232232
if: ${{ needs.build.outputs.changed == 'true'}}
233233
steps:
234-
- uses: actions/setup-node@v4
235-
with:
236-
node-version-file: .nvmrc
237234
- name: Download build archive
238235
uses: actions/download-artifact@v4
239236
with:
240237
name: build-${{ github.sha }}
241238
- name: Unzip build artifact
242239
run: tar xf build.tar.gz
240+
- uses: actions/setup-node@v4
241+
with:
242+
node-version-file: .nvmrc
243243
- name: Test setup
244244
run: |
245245
cp config/ci.config.json config/project.json

0 commit comments

Comments
 (0)