id: cache-cypress
uses: actions/cache@v3
with:
+ # TODO: avoid snowballing by adding version
key: ${{ runner.os }}-cypress-bin
path: ${{ env.CYPRESS_CACHE_FOLDER }}
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