Skip to content

Commit

Permalink
CI: improve status check job.
Browse files Browse the repository at this point in the history
The final job should now always produce a status
of either success or failure.
  • Loading branch information
jschwe committed Jan 15, 2023
1 parent e3d8d20 commit 687a869
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ jobs:
# Hence, we have some kind of dummy here that bors can listen on
ci-success:
name: bors-ci-status
if: ${{ success() }}
needs:
- test_legacy_linux
- test_legacy_mac
Expand All @@ -304,4 +305,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0
run: exit 0
if: ${{ success() }}
ci-failure:
name: bors-ci-status
if: ${{ failure() }}
needs:
- test_legacy_linux
- test_legacy_mac
- test_legacy_windows
- test
- test_msvc
- test_cxxbridge
- install
runs-on: ubuntu-latest
steps:
- name: CI failed
run: exit 1
if: ${{ failure() }}

0 comments on commit 687a869

Please sign in to comment.