-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Remove branch restriction to allow testing feature branches #9467
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
Remove branch restriction to allow testing feature branches #9467
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.
👍
@@ -3,8 +3,6 @@ name: main | |||
on: | |||
push: | |||
branches: |
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 presume we need the branches key?
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 so, because there's a tags
sibling key too. But irrelevant now because we're allowing "test-me-*"
instead :)
.github/workflows/main.yml
Outdated
- main | ||
- "[0-9]+.[0-9]+.x" |
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.
this is intentional to prevent double-testing branches -- my recommendation is to instead add another prefix such as what I do here
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 agree, this would be rather wasteful - instead of running CI twice for each change (PR + main), it will be run 3 times (branch + PR + main). I think that for local testing, @asottile's suggestion or a local PR would do.
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.
Sounds good, updated with test-me-*
!
a3385b6
to
819c67f
Compare
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.
Follow on from #9461 (comment):
Allow the CI to test feature branches on forks, so contributors can check their branch passes the CI before creating a PR.