diff options
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 15 |
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] |
