From afabcf9f651d8b58411fb606d0bec97d06758f79 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Thu, 4 May 2023 22:42:02 +0800 Subject: [PATCH] ci: try fixing the cypress cache issue --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57116fb7..dbcb39fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -133,6 +133,7 @@ jobs: id: cache-cypress uses: actions/cache@v3 with: + # TODO: avoid snowballing by adding version key: ${{ runner.os }}-cypress-bin path: ${{ env.CYPRESS_CACHE_FOLDER }} @@ -167,10 +168,12 @@ jobs: working-directory: ../sample-project run: pnpm build - - name: Force download Cypress on cache miss - if: ${{ contains(matrix.flag-for-e2e, '--cypress') && steps.cache-cypress.outputs.cache-hit != 'true'}} + - name: Download Cypress + if: ${{ contains(matrix.flag-for-e2e, '--cypress') }} working-directory: ../sample-project - run: pnpm exec cypress install --force + run: | + pnpm exec cypress cache list + pnpm exec cypress install --force - if: ${{ contains(matrix.flag-for-e2e, '--playwright') }} name: Install Playwright dependencies -- 2.39.5