Skip to content

Commit 4380045

Browse files
author
Akash Satheesan
committed
chore(ci): move cache step before downloading artifacts
1 parent 29e39d8 commit 4380045

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ jobs:
245245
- name: Install playwright
246246
uses: microsoft/playwright-github-action@v1
247247

248+
- name: Fetch dependencies from cache
249+
id: cache-yarn
250+
uses: actions/cache@v2
251+
with:
252+
path: "**/node_modules"
253+
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
254+
248255
- name: Download release packages
249256
uses: actions/download-artifact@v2
250257
with:
@@ -255,20 +262,14 @@ jobs:
255262
run: |
256263
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
257264
258-
- name: Fetch dependencies from cache
259-
id: cache-yarn
260-
uses: actions/cache@v2
261-
with:
262-
path: "**/node_modules"
263-
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
264-
265265
- name: Install dependencies
266266
if: steps.cache-yarn.outputs.cache-hit != 'true'
267267
run: yarn --frozen-lockfile
268268

269269
# HACK: this shouldn't need to exist, but put it here anyway
270270
# in an attempt to solve Playwright cache failures.
271271
- name: Reinstall playwright
272+
if: steps.cache-yarn.outputs.cache-hit == 'true'
272273
run: |
273274
cd test/
274275
rm -r node_modules/playwright

0 commit comments

Comments
 (0)