-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with 2 step install / restore #1351
Comments
Your workflow job This issue list isn't really intended for "how-to" type implementation questions. It is more for bugs reports and enhancement requests, although there is always a grey area involved. For "how-to" type support you can connect to the Cypress technical community on Discord You may also want to check on the timings with and without caching. In some cases caching on GitHub-hosted runners can slow down workflows, which is counter intuitive, and even if caching speeds up the workflow, the gains may only be marginal. That is highly dependent on the project though. If caching is not beneficial, you may be able to simplify your workflow by omitting any additional caching definitions. |
Fair enough. And yes, good point - I've seen the same thing as far as cache timings. I think in this case, since the caches are feeding a parallel workflow, it's partially done to avoid having each worker have to install the same dependencies, and we were also seeing some issues with npm rate-limiting, especially on self-hosted runners. |
To debug any workflow, follow the instructions in https://github.com/cypress-io/github-action/blob/master/README.md#debugging. In particular Good luck! |
I'm running a 2-step install / run job on a couple projects that are using
pnpm
. This project had previously used the GH cache action directly to cache bothnode_modules
and the Cypress cache, and I was trying to simplify; I was initially trying to use a simple example like https://github.com/cypress-io/github-action?tab=readme-ov-file#pnpm, but ran into issues because of running a separate build and run step.So then I started trying to use something along the lines of:
https://github.com/cypress-io/github-action?tab=readme-ov-file#split-install-and-tests
That mostly works, but because I have some jobs that use the regular
setup-node
action withcache: pnpm
set, I was running into some issues in terms of order of operations, and tried to switch the jobs to use a customcache-key
.Slightly simplified / sanitized config:
I'm getting various downstream errors with Cypress or other dependencies not being installed in the downstream job. The exact error seems to vary.
Is there a simple way to do what I'm trying to do, or is it better to continue using
actions/cache@v4
directly?The text was updated successfully, but these errors were encountered: