summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-03-05 12:55:00 +0100
committerGitHub <noreply@github.com>2024-03-05 11:55:00 +0000
commitaa69f4474344d44622fdd2a82e08a157e5656da4 (patch)
tree5acbc60f3672fe10f306a1d95c8367c11159346f /.github
parent668a79f9f91b65a00bf7290bd3f01c3a5125955a (diff)
Collect test matrix result into single job result (#3552)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d0ab420d..730bf75f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,8 +6,23 @@ env:
RUSTDOCFLAGS: "-Dwarnings"
jobs:
+ # This allows us to have one branch protection rule for the full test matrix.
+ # See: https://github.com/orgs/community/discussions/4324
tests:
name: Tests
+ runs-on: ubuntu-latest
+ needs: [test-matrix]
+ if: always()
+ steps:
+ - name: Tests successful
+ if: ${{ !(contains(needs.*.result, 'failure')) }}
+ run: exit 0
+ - name: Tests failing
+ if: ${{ contains(needs.*.result, 'failure') }}
+ run: exit 1
+
+ test-matrix:
+ name: Tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest]