ci: run full ci only on PRs with 'full-ci' label
After this commit only three workflow are run on pull request or push to a developer branch: - luacheck - release - debug_coverage To run all other tests, one should either name the branch `*-full-ci` and push it to the main repository or set the 'full-ci' label on the pull request. It is also possible to disable all tests on push by naming branch as `*-notest' or setting the 'notest' label on the pull request. **Caveats**: - Unfortunately, currently it doesn't seem to be possible to run workflows automatically when a particular label is set - the best we can do is run workflows when *any* label is set. So labeling a PR that has the 'full-ci' label set will trigger all workflows! - For the same reason, removing the 'notest' label doesn't trigger ci. One has to synchronize the PR afterwards. We could trigger ci on the 'unlabel' event, but this would trigger tests when any label is removed, not necessarily 'notest'. Since 'notest' is supposed to be used only by developers, who can sync the branch, this should be acceptable. While we are at it: - Remove the check disabling certain workflow runs on forks - it's pointless, because forks don't have ci. Anyway, we don't bother disabling most of our workflows on forks, even those that we run on self-hosted machines, so that would only be consistent. - Remove the condition from the coverity workflow - coverity doesn't run on push or PR so it doesn't make any sense. - Remove the condition from the 'source' workflow. Instead trigger it only when a tag is pushed. This is needed to avoid showing it as a skipped workflow in PRs and commits. Closes #6605 (cherry picked from commit 6c2e664e)
Showing
- .github/workflows/centos_7.yml 10 additions, 5 deletions.github/workflows/centos_7.yml
- .github/workflows/centos_8.yml 10 additions, 5 deletions.github/workflows/centos_8.yml
- .github/workflows/coverity.yml 0 additions, 6 deletions.github/workflows/coverity.yml
- .github/workflows/debian_10.yml 10 additions, 5 deletions.github/workflows/debian_10.yml
- .github/workflows/debian_11.yml 10 additions, 5 deletions.github/workflows/debian_11.yml
- .github/workflows/debian_9.yml 10 additions, 5 deletions.github/workflows/debian_9.yml
- .github/workflows/debug_coverage.yml 9 additions, 5 deletions.github/workflows/debug_coverage.yml
- .github/workflows/default_gcc_centos_7.yml 10 additions, 5 deletions.github/workflows/default_gcc_centos_7.yml
- .github/workflows/fedora_30.yml 10 additions, 5 deletions.github/workflows/fedora_30.yml
- .github/workflows/fedora_31.yml 10 additions, 5 deletions.github/workflows/fedora_31.yml
- .github/workflows/fedora_32.yml 10 additions, 5 deletions.github/workflows/fedora_32.yml
- .github/workflows/fedora_33.yml 10 additions, 5 deletions.github/workflows/fedora_33.yml
- .github/workflows/fedora_34.yml 10 additions, 5 deletions.github/workflows/fedora_34.yml
- .github/workflows/freebsd-12.yml 7 additions, 0 deletions.github/workflows/freebsd-12.yml
- .github/workflows/fuzzing.yml 0 additions, 2 deletions.github/workflows/fuzzing.yml
- .github/workflows/luacheck.yml 9 additions, 5 deletions.github/workflows/luacheck.yml
- .github/workflows/opensuse_15_1.yml 10 additions, 5 deletions.github/workflows/opensuse_15_1.yml
- .github/workflows/opensuse_15_2.yml 10 additions, 5 deletions.github/workflows/opensuse_15_2.yml
- .github/workflows/osx_10_15.yml 10 additions, 5 deletions.github/workflows/osx_10_15.yml
- .github/workflows/osx_10_15_lto.yml 10 additions, 5 deletions.github/workflows/osx_10_15_lto.yml
Loading
Please register or sign in to comment