-
I noticed something interesting happening when running Cypress with the github action. If I have a pull requests/branch that is out of date with our main branch, it will run all of the specs that exist in the main branch, even if they don't exist in the pull request branch. Is that intended behavior? Here's what I'm seeing:
If this is intended behavior, is there documentation about what is happening here? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After digging a bit I discovered that what I described above is intended behavior. The github checkout action creates a merge commit of the base branch and the target branch as if the pull request were merged. This can be disabled as described here: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit |
Beta Was this translation helpful? Give feedback.
After digging a bit I discovered that what I described above is intended behavior. The github checkout action creates a merge commit of the base branch and the target branch as if the pull request were merged. This can be disabled as described here: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit