Skip to content

Commit

Permalink
Add check CI job (#1058)
Browse files Browse the repository at this point in the history
This job simply passes if all other jobs pass.
This means that it can be used as a singlular "required" for branch protection rules, rather than having to change every time the test matrix changes
  • Loading branch information
chrisjsewell committed Nov 3, 2023
1 parent e37896d commit 2966474
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,17 @@ jobs:
with:
python-version: '3.8'
- uses: pre-commit/action@v3.0.0

check:
# This job does nothing and is only used for the branch protection
# see https://github.com/marketplace/actions/alls-green#why
if: always()
needs:
- lint
- tests
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit 2966474

Please sign in to comment.