-
Notifications
You must be signed in to change notification settings - Fork 15
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
Run tests on PR branch not main #188
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do not even need the checkout there
are you sure ? do you mean it's the PRs repository content by default ? |
I am not 100% sure tbh |
So we would not need to change anything (except the name the step) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably change on
with:
on:
push:
branches:
- main
- master
pull_request:
branches: [main]
types: [opened, synchronize, closed]
I am confused, so you would leave the checkout but without with ? thats what we got now, no ? and that does not really work |
mhh from the docs it seems as if you are right, but that: https://github.com/galaxyproject/galaxy_codex/actions/runs/11231597142 should have failed then ... |
It fails there: #187 |
Jup, but that's again the error from the column form the last PR, which is now merged in main, actually proofing that this CI did run on main, not the PR |
Do we then need this PR? |
Yes, I think it is still the case that the CI as is runs on the main branch not the PR branch, hence not testing anything, I assume that this PR will fix it. |
According to actions/checkout#1325
this should check out to the branch used on the PR or the push event. So actually testing what is incoming.