From 44bfa4ea13e00dd713b67ac6c11d0cf72c6ef5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Smestad?= Date: Tue, 12 Nov 2024 13:44:30 +0100 Subject: [PATCH] Try to force Cypress to install if not restored from cache --- .github/workflows/cypress.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 8cbff13c..a45b83eb 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -43,6 +43,7 @@ jobs: env: TEST_USER: ${{ secrets.PLAYER_TEST_USER }} - name: Set up Cypress binary cache + id: cypress-cache uses: actions/cache@v4 with: path: ~/.cache/Cypress @@ -52,7 +53,7 @@ jobs: env: CYPRESS_TEST_USER: ${{ steps.json.outputs.encoded }} with: - install: false + install: ${{ steps.cypress-cache.outputs.cache-hit == 'true' && 'false' || 'true' }} browser: chrome start: pnpm --dir packages/player/ dev wait-on: 'http://localhost:5173/demo/test-case-1.html'