From bf90e8bf449c992d59d9ddc10a2ed73fae4a63f7 Mon Sep 17 00:00:00 2001 From: Christian Klemm Date: Tue, 12 Nov 2019 22:10:16 +0100 Subject: [PATCH] switched caching method --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9a946ceb..5ef1a6f2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: matrix: node-version: [10.x, 12.x] env: - CYPRESS_CACHE_FOLDER: $GITHUB_WORKSPACE/.cache/cypress + CYPRESS_CACHE_FOLDER: $GITHUB_WORKSPACE/node_modules/.cypress steps: - uses: actions/checkout@v1 - name: Setup Node.js ${{ matrix.node-version }} @@ -17,14 +17,12 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: Install Yarn - run: | - npm i yarn --global - yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn + run: npm i yarn --global - name: Cache node modules uses: actions/cache@v1 with: - path: .cache + path: node_modules key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.OS }}-build-