]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
ci: try fixing the cypress cache issue
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 4 May 2023 14:42:02 +0000 (22:42 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 4 May 2023 14:42:02 +0000 (22:42 +0800)
.github/workflows/ci.yml

index 57116fb70d6b777ac51ed0602d886a40a8beb27e..dbcb39fe89ce629f82708de1cacb900e91fa83a0 100644 (file)
@@ -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