File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments