Skip to content

Commit 3876593

Browse files
balzssclaude
andcommitted
fix(ci): add explicit Cypress binary cache for Docker container
Following the solution from cypress-io/github-action#1138, explicitly cache the Cypress binary separately from pnpm dependencies. Changes: - Add actions/cache@v4 step to cache /github/home/.cache/Cypress - Cache key includes regression-test/pnpm-lock.yaml hash - Remove explicit install steps and let cypress-io/github-action handle installation - Remove install: false to allow action to manage Cypress installation The action will: 1. On first run: install Cypress binary and cache it 2. On subsequent runs: restore binary from cache 3. Automatically detect and use pnpm from the workspace 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 1803a28 commit 3876593

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/visual-regression.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ jobs:
2020
with:
2121
node-version: '22'
2222
cache: 'pnpm'
23+
- name: Cache Cypress binary
24+
uses: actions/cache@v4
25+
with:
26+
path: /github/home/.cache/Cypress
27+
key: ${{ runner.os }}-cypress-${{ hashFiles('regression-test/pnpm-lock.yaml') }}
2328
- name: Build InstUI
2429
run: pnpm install --frozen-lockfile && pnpm run bootstrap
25-
- name: Install regression-test dependencies
26-
run: pnpm install --frozen-lockfile
27-
working-directory: regression-test
2830
- name: Run Cypress tests
2931
uses: cypress-io/github-action@v6
3032
env:
3133
ELECTRON_EXTRA_LAUNCH_ARGS: "--remote-debugging-port=9222"
3234
with:
33-
install: false
3435
build: pnpm run build
3536
start: pnpm start
3637
working-directory: regression-test

0 commit comments

Comments
 (0)