Skip to content

Commit 179e3b4

Browse files
committed
move chrome install earlier
1 parent 35f460a commit 179e3b4

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
id: node_modules
5252
with:
5353
path: "**/node_modules"
54-
key: node_modules-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
54+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
5555
- run: yarn install --frozen-lockfile
5656
- run: cp config/ci.config.json config/project.json
5757
- name: build
@@ -86,6 +86,10 @@ jobs:
8686
needs: build
8787
if: ${{ needs.build.outputs.changed == 'true'}}
8888
steps:
89+
- name: install Chrome stable
90+
run: |
91+
sudo apt-get update
92+
sudo apt-get install google-chrome-stable
8993
- uses: actions/checkout@v4
9094
- uses: actions/setup-node@v4
9195
with:
@@ -97,12 +101,8 @@ jobs:
97101
id: node_modules
98102
with:
99103
path: "**/node_modules"
100-
key: node_modules-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
104+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
101105
- run: yarn install --frozen-lockfile
102-
- name: install Chrome stable
103-
run: |
104-
sudo apt-get update
105-
sudo apt-get install google-chrome-stable
106106
- name: Download build archive
107107
uses: actions/download-artifact@v4
108108
with:
@@ -120,6 +120,10 @@ jobs:
120120
needs: build
121121
if: ${{ needs.build.outputs.changed == 'true'}}
122122
steps:
123+
- name: install Chrome stable
124+
run: |
125+
sudo apt-get update
126+
sudo apt-get install google-chrome-stable
123127
- uses: actions/checkout@v4
124128
- uses: actions/setup-node@v4
125129
with:
@@ -131,12 +135,8 @@ jobs:
131135
id: node_modules
132136
with:
133137
path: "**/node_modules"
134-
key: node_modules-firestore-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
138+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
135139
- run: yarn install --frozen-lockfile
136-
- name: install Chrome stable
137-
run: |
138-
sudo apt-get update
139-
sudo apt-get install google-chrome-stable
140140
- name: Download build archive
141141
uses: actions/download-artifact@v4
142142
with:
@@ -156,6 +156,10 @@ jobs:
156156
needs: build
157157
if: ${{ github.event_name != 'pull_request' }}
158158
steps:
159+
- name: install Chrome stable
160+
run: |
161+
sudo apt-get update
162+
sudo apt-get install google-chrome-stable
159163
- uses: actions/checkout@v4
160164
- uses: actions/setup-node@v4
161165
with:
@@ -167,12 +171,8 @@ jobs:
167171
id: node_modules
168172
with:
169173
path: "**/node_modules"
170-
key: node_modules-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
174+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
171175
- run: yarn install --frozen-lockfile
172-
- name: install Chrome stable
173-
run: |
174-
sudo apt-get update
175-
sudo apt-get install google-chrome-stable
176176
- name: Download build archive
177177
uses: actions/download-artifact@v4
178178
with:
@@ -212,7 +212,7 @@ jobs:
212212
id: node_modules
213213
with:
214214
path: "**/node_modules"
215-
key: node_modules-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
215+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
216216
- run: yarn install --frozen-lockfile
217217
- name: Download build archive
218218
uses: actions/download-artifact@v4
@@ -255,7 +255,7 @@ jobs:
255255
id: node_modules
256256
with:
257257
path: "**/node_modules"
258-
key: node_modules-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
258+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
259259
- run: yarn install --frozen-lockfile
260260
- run: cp config/ci.config.json config/project.json
261261
- name: Run tests
@@ -281,7 +281,7 @@ jobs:
281281
id: node_modules
282282
with:
283283
path: "**/node_modules"
284-
key: node_modules-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
284+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
285285
- run: yarn install --frozen-lockfile
286286
- name: Download build archive
287287
uses: actions/download-artifact@v4
@@ -321,7 +321,7 @@ jobs:
321321
id: node_modules
322322
with:
323323
path: "**/node_modules"
324-
key: node_modules-firestore-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
324+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
325325
- run: yarn install --frozen-lockfile
326326
- run: cp config/ci.config.json config/project.json
327327
- run: npx playwright install webkit

0 commit comments

Comments
 (0)