Skip to content

Commit

Permalink
ci: work around "cypress missing" error
Browse files Browse the repository at this point in the history
https://github.com/mikavilpas/tui-sandbox/actions/runs/11981839398/job/33408806661?pr=155

> /opt/hostedtoolcache/node/20.17.0/x64/bin/npx cypress cache list
> No cached binary versions were found.
> /opt/hostedtoolcache/node/20.17.0/x64/bin/npx cypress verify
> The cypress npm package is installed, but the Cypress binary is missing.
>
> We expected the binary to be installed here: /home/runner/.cache/Cypress/13.16.0/Cypress/Cypress
>
> Reasons it may be missing:
>
> - You're caching 'node_modules' but are not caching this path: /home/runner/.cache/Cypress
> - You ran 'npm install' at an earlier build step but did not persist: /home/runner/.cache/Cypress
>
> Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.
>
> Alternatively, you can run 'cypress install' to download the binary again.
>
> https://on.cypress.io/not-installed-ci-error

cypress-io/github-action#1246
  • Loading branch information
mikavilpas committed Nov 23, 2024
1 parent 9c64c3a commit 9e4163a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- run: pnpm prettier
- run: pnpm test

# need to work around https://github.com/cypress-io/github-action/issues/1246
- run: pnpm --filter integration-tests exec cypress install

- name: Cypress run
uses: cypress-io/[email protected]
with:
Expand Down

0 comments on commit 9e4163a

Please sign in to comment.