ci(workflow): add yarn' cache from setup-node action to 'e2e-with-cypress' job (#5957)

This commit is contained in:
Oscar Dominguez 2021-11-08 12:02:51 +01:00 committed by GitHub
parent b5d8881054
commit 936142e5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,15 +61,7 @@ jobs:
with:
node-version: '*'
check-latest: true
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: |
${{ runner.os }}-yarn-
cache: yarn
- uses: actions/download-artifact@master
with:
name: dev-test-website-${{ runner.os }}