Pushing code changes to any branch creates two run...
# i-need-help
c
Hi All, First off thanks for reading my message. The problem I'm having is; when I make a change and commit it to any branch, the suite runs twice putting two entries into the latest runs table. I must have something in my config telling it to do this but I can't for the life of me figure out where. I guess a good place to start is in my cypress.yml file. Apologies if this post is too vague, I'm not exactly sure how to find the solution to my problem! https://cdn.discordapp.com/attachments/1110948975890149496/1110948976238272632/cypress.yml
m
Hi @cold-island-71759 This is about GitHub Actions, correct? When you say "runs table" are you referring to Cypress Cloud?
Sorry, I should have clicked on "Expand" before asking the questions!
You are effectively calling Cypress twice in your workflow
start: npm run cypress:run
is the first call
uses: cypress-io/github-action@v4
and this one repeats the run You should be able to just remove the
start
parameter. Take a look at the examples on https://github.com/cypress-io/github-action/blob/master/README.md and whilst you are making changes, I would suggest updating to `@v5`whilst you are at it.
c
Hi @many-airline-45402 Thank you so much, such a stupid mistake. I must've been looking at it for so long it didn't seem odd to me that it was calling it twice! Are there any specific docs on updating my file from v4 to 5? Or is it also as simple as just putting
uses: cypress-io/github-action@v5
?
m
The only breaking change moving from
@v4
to
@v5
was the removal of Node.js
12
support, so it should be just a simple edit for you (unless of course you are still relying on the old Node.js version).
c
Thanks again for your help, everything's working well now