Skip to content

Commit afabcf9

Browse files
committed
ci: try fixing the cypress cache issue
1 parent 8c01de9 commit afabcf9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ jobs:
133133
id: cache-cypress
134134
uses: actions/cache@v3
135135
with:
136+
# TODO: avoid snowballing by adding version
136137
key: ${{ runner.os }}-cypress-bin
137138
path: ${{ env.CYPRESS_CACHE_FOLDER }}
138139

@@ -167,10 +168,12 @@ jobs:
167168
working-directory: ../sample-project
168169
run: pnpm build
169170

170-
- name: Force download Cypress on cache miss
171-
if: ${{ contains(matrix.flag-for-e2e, '--cypress') && steps.cache-cypress.outputs.cache-hit != 'true'}}
171+
- name: Download Cypress
172+
if: ${{ contains(matrix.flag-for-e2e, '--cypress') }}
172173
working-directory: ../sample-project
173-
run: pnpm exec cypress install --force
174+
run: |
175+
pnpm exec cypress cache list
176+
pnpm exec cypress install --force
174177
175178
- if: ${{ contains(matrix.flag-for-e2e, '--playwright') }}
176179
name: Install Playwright dependencies

0 commit comments

Comments
 (0)