Skip to content

Commit

Permalink
fix: Reduce status checks in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Jan 11, 2024
1 parent 8d7441b commit 849e978
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,17 @@ jobs:

- name: Run tests
run: cargo test --verbose

# NOTE: In GitHub repository settings, the "Require status checks to pass
# before merging" branch protection rule ensures that commits are only merged
# from branches where specific status checks have passed. These checks are
# specified manually as a list of workflow job names. Thus we use this extra
# job to signal whether all CI checks have passed.
ci:
name: CI status checks
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: Check whether all jobs pass
run: echo '${{ toJson(needs) }}' | jq -e 'all(.result == "success")'

0 comments on commit 849e978

Please sign in to comment.