switched caching method

This commit is contained in:
Christian Klemm
2019-11-12 22:10:16 +01:00
committed by GitHub
parent b1305644f4
commit bf90e8bf44

View File

@@ -9,7 +9,7 @@ jobs:
matrix: matrix:
node-version: [10.x, 12.x] node-version: [10.x, 12.x]
env: env:
CYPRESS_CACHE_FOLDER: $GITHUB_WORKSPACE/.cache/cypress CYPRESS_CACHE_FOLDER: $GITHUB_WORKSPACE/node_modules/.cypress
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Setup Node.js ${{ matrix.node-version }} - name: Setup Node.js ${{ matrix.node-version }}
@@ -17,14 +17,12 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Install Yarn - name: Install Yarn
run: | run: npm i yarn --global
npm i yarn --global
yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn
- name: Cache node modules - name: Cache node modules
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: .cache path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.OS }}-build- ${{ runner.OS }}-build-