-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
CI: run tests on pull_request and push to main/release #15690
Conversation
Running tests `on: push` prevents GitHub from showing the workflow approval button, which prevents tests from being run on community-contributed (or even just non-Nomad HashiCorp folks) PRs. Running `on: pull_request` automatically picks up opened, reopened, and synchronize hooks (where "synchronize" means a push to HEAD on the PR's branch, so that'll pick up rebases and updates). But we also want to run tests on `main` and the various `release` backport branches, so retain a `on: push` for those.
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.changelog/**' | ||
- '.tours/**' | ||
- 'contributing/**' | ||
- 'demo/**' | ||
- 'dev/**' | ||
- 'e2e/terraform/**' | ||
- 'e2e/ui/**' | ||
- 'integrations/**' | ||
- 'pkg/**' | ||
- 'scripts/**' | ||
- 'terraform/**' | ||
- 'ui/**' | ||
- 'website/**' |
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.
obligatory yaml rage
Running tests `on: push` prevents GitHub from showing the workflow approval button, which prevents tests from being run on community-contributed (or even just non-Nomad HashiCorp folks) PRs. Running `on: pull_request` automatically picks up opened, reopened, and synchronize hooks (where "synchronize" means a push to HEAD on the PR's branch, so that'll pick up rebases and updates). But we also want to run tests on `main` and the various `release` backport branches, so retain a `on: push` for those.
Running tests `on: push` prevents GitHub from showing the workflow approval button, which prevents tests from being run on community-contributed (or even just non-Nomad HashiCorp folks) PRs. Running `on: pull_request` automatically picks up opened, reopened, and synchronize hooks (where "synchronize" means a push to HEAD on the PR's branch, so that'll pick up rebases and updates). But we also want to run tests on `main` and the various `release` backport branches, so retain a `on: push` for those. Co-authored-by: Tim Gross <tgross@hashicorp.com>
Running tests `on: push` prevents GitHub from showing the workflow approval button, which prevents tests from being run on community-contributed (or even just non-Nomad HashiCorp folks) PRs. Running `on: pull_request` automatically picks up opened, reopened, and synchronize hooks (where "synchronize" means a push to HEAD on the PR's branch, so that'll pick up rebases and updates). But we also want to run tests on `main` and the various `release` backport branches, so retain a `on: push` for those.
Running tests `on: push` prevents GitHub from showing the workflow approval button, which prevents tests from being run on community-contributed (or even just non-Nomad HashiCorp folks) PRs. Running `on: pull_request` automatically picks up opened, reopened, and synchronize hooks (where "synchronize" means a push to HEAD on the PR's branch, so that'll pick up rebases and updates). But we also want to run tests on `main` and the various `release` backport branches, so retain a `on: push` for those. Co-authored-by: Tim Gross <tgross@hashicorp.com>
Running tests `on: push` prevents GitHub from showing the workflow approval button, which prevents tests from being run on community-contributed (or even just non-Nomad HashiCorp folks) PRs. Running `on: pull_request` automatically picks up opened, reopened, and synchronize hooks (where "synchronize" means a push to HEAD on the PR's branch, so that'll pick up rebases and updates). But we also want to run tests on `main` and the various `release` backport branches, so retain a `on: push` for those.
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Running tests
on: push
prevents GitHub from showing the workflow approval button, which prevents tests from being run on community-contributed (or even just non-Nomad HashiCorp folks) PRs. Runningon: pull_request
automatically picks up opened, reopened, and synchronize hooks (where "synchronize" means a push to HEAD on the PR's branch, so that'll pick up rebases and updates).But we also want to run tests on
main
and the variousrelease
backportbranches, so retain a
on: push
for those.Closes #15632