-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Not able to run the tests on Cypress Cloud viaGithub actions #29722
Comments
I would recommend updating to the latest Cypress version, we may have resolved the Chrome opening issue since then. What is the output you're seeing when running Cypress? It's not clear to me the exact error you're encountering. |
You write that you are using Node.js version
and make sure that you are using a minimum version of Please post also your GitHub Actions workflow. |
v20.13.1. this is the node version. Workflow: steps:
|
You may be able to get more information about why your workflow is failing if you enable debugging env:
DEBUG: '@cypress/github-action' You do not need the line run: yarn if your repo has a Please edit the posting of your workflow and use backticks, otherwise your code is displayed as
This issue could also be transferred to https://github.com/cypress-io/github-action, although at this time there has not been any root cause identified. |
The workflow is missing env:
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@MikeMcC399 Added the Debug line suggested by you. After which the specs are running. Attaching the logs for your reference. Please guide. |
You write that you have added env:
GITHUB_TOKEN: ${{ secrets.TOKEN }} This is not the same as: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} See
I suggest again for you to follow the documentation to avoid your errors. |
As per your suggestion, I made the necessary changes. @MikeMcC399 Any particular reason why the run time has increased ( 25 mins to run 2 specs ) which leads to cancellation of operation ( triggered via scheduled job and via ci/cd) However, it runs 18 specs in 25 mins via triggered manually. |
@janavi-p If you run Cypress in debug mode mode and print the entire set of logs here, that might reveal where the test is sitting for so long. |
This issue is stale since there has been no reply for one month. |
Current behavior
I am currently able to run the tests manually via cypress cloud. But if I trigger via github actions it does not. I tried reaching out to support@cypress.io, but did not get prompt help.
Desired behavior
Whenever the PR push happens to staging my repo should be triggered via Github actions in the Cypress cloud.
Even scheduled cron job do not run via cypress cloud
Test code to reproduce
Whenever the PR push happens to staging my repo should be triggered via Github actions in the Cypress cloud.
Even scheduled cron job do not run via cypress cloud
In addition to this, in my local runs I cannot use chrome browser.
Cypress Version
13.12.0
Node version
9.5.1
Operating System
macOS 14.5
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: