From 7b216b885159d2bbf5fa63edbcf27caec7540ef5 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Thu, 1 Oct 2020 11:36:58 +0200 Subject: [PATCH] fix cypress cache key --- .github/workflows/main.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9dd611b6..8d8c9532 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,20 +72,11 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Load cached dependencies - uses: actions/cache@v2 - id: cache - with: - path: | - **/node_modules - /home/runner/.cache/Cypress - key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} - - name: Run tests with Cypress id: cypress uses: cypress-io/github-action@v2 with: - cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }} + cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} start: yarn start wait-on: 'http://localhost:3000' project: ./tests