mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Collect test matrix result into single job result (#3552)
This commit is contained in:
parent
668a79f9f9
commit
aa69f44743
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -6,7 +6,22 @@ env:
|
|||||||
RUSTDOCFLAGS: "-Dwarnings"
|
RUSTDOCFLAGS: "-Dwarnings"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# This allows us to have one branch protection rule for the full test matrix.
|
||||||
|
# See: https://github.com/orgs/community/discussions/4324
|
||||||
tests:
|
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
|
name: Tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user