-
Notifications
You must be signed in to change notification settings - Fork 359
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
GitHub Actions job marked as SUCCESS but CYPRESS tests fail #1116
Comments
Cypress no longer supports Node.js
The screenshot of your yml file is not complete and does not show any call to Instead of pasting a screenshot, it would be better if you pasted the text of the yml file, including the call to
We may also need to see your log files. |
Hi @MikeMcC399 , Below is my yml |
Thank you for providing your complete name: End-to-end tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Install npm dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6 I understand from your workflow, that you call Cypress using the step - name: env variables & Run Tests
shell: bash
run: |
export secretVariable=${{ secrets.keyname }} // adding some secret keys
npm run Scriptname This is outside of the scope of this issue list, which is for reporting bugs or making enhancement requests for the Cypress JavaScript GitHub Action The only comment I can give you is that you have outdated versions of other JavaScript GitHub Actions. You might want to update these. I don't expect this would resolve your problem though: - uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/upload-artifact@v2 |
@MikeMcC399 as per you suggession, I've upgraded node version and I tried to use cypress-io/github-action@v6 but then job failed saying "cypress-io/github-action@v6" is not allowed to be used within Organization. |
You can find many examples in the README and https://github.com/cypress-io/github-action/tree/master/.github/workflows about how to use Normally, if you are using example-config.ym shows how to select specs. I am going to close this issue now, as it does not concern any bug in the action. If you think you have found a bug when using the action, please open a new issue and provide your new workflow. |
My GitHub Actions run has always been marked a Success even when my cypress spec file test blocks marked as failed.

Below is the screenshot of how my yml file roughly looks like
I’ve been stuck with this issue for last two months, need suggestions on how to resolve them.
Appreciate any help.
The text was updated successfully, but these errors were encountered: