Skip to content

Commit

Permalink
Merge #308
Browse files Browse the repository at this point in the history
308: CI: improve status check job. r=jschwe a=jschwe

The final job should now always produce a status of either success or failure.

Co-authored-by: Jonathan Schwender <schwenderjonathan@gmail.com>
  • Loading branch information
bors[bot] and jschwe authored Feb 4, 2023
2 parents 6c3b53d + f7fe45a commit d605f2c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ jobs:
# Hence, we have some kind of dummy here that bors can listen on
ci-success:
name: bors-ci-status
if: ${{ always() }}
needs:
- test_legacy_linux
- test_legacy_mac
Expand All @@ -310,6 +311,13 @@ jobs:
- test_cxxbridge
- install
runs-on: ubuntu-latest
# Step copied from: https://github.com/cross-rs/cross/blob/80c9f9109a719ffb0f694060ddc6e371d5b3a540/.github/workflows/ci.yml#L361
steps:
- name: CI succeeded
run: exit 0
- name: Result
run: |
jq -C <<< "${needs}"
# Check if all needs were successful or skipped.
"$(jq -r 'all(.result as $result | (["success", "skipped"] | contains([$result])))' <<< "${needs}")"
env:
needs: ${{ toJson(needs) }}

0 comments on commit d605f2c

Please sign in to comment.