From: Haoqun Jiang Date: Thu, 4 May 2023 14:42:02 +0000 (+0800) Subject: ci: try fixing the cypress cache issue X-Git-Tag: v3.6.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afabcf9f651d8b58411fb606d0bec97d06758f79;p=thirdparty%2Fvuejs%2Fcreate-vue.git ci: try fixing the cypress cache issue --- 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