.github: add "required" ci job (#276)

Github branch protection rules allow required checks to be specified, but they
must be mentioned by name. This is a little annoying for jobs with names that
change, such as test jobs that depend on the go version.

This PR fixes this by creating a stub job in the CI workflow that simply
depends on the test and lint workflows. This job can then be listed as a
required check, and has the effect of aggregating the dependent checks into
one.
This commit is contained in:
Michael McLoughlin
2022-05-01 14:11:37 -07:00
committed by GitHub
parent a746f32c01
commit 967e076788

View File

@@ -9,6 +9,16 @@ on:
schedule:
- cron: "17 12 * * 6"
jobs:
# Required job is a stub which only runs when other dependencies complete
# successfully. This is intended to be listed as a required check in a branch
# protection rule.
required:
needs:
- test
- lint
runs-on: ubuntu-latest
steps:
- run: "true"
test:
strategy:
matrix: