GitHub Action with Cypress Not Recognizing When to Start Tests #30385
Unanswered
br-schneider
asked this question in
CI setup
Replies: 1 comment
-
I am also having a similar issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with a Turborepo setup that includes a Next.js application. We've successfully got our tests running locally by adding the following command to our
package.json
:Along with the default config file
cypress.config.ts
:However, we're encountering an issue when trying to run Cypress tests in our GitHub Actions workflow. The server starts up in the action but then stalls out without Cypress knowing it needs to start running. We're unsure where to edit the action to have it know when to run or when the build is done.
Here's are two GitHub Action configuration variations we have tried:
Issue: The server starts up during the GitHub Action, but Cypress doesn't seem to recognize when it should start running the tests. It seems to stall, waiting indefinitely (we have tried localhost and 0.0.0.0:3000).
Question: Does anyone have ideas on how to modify the GitHub Action so that Cypress knows when to start running, or when the build is completed? Any guidance or suggestions would be greatly appreciated!
Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions