Skip to content

Commit f759a68

Browse files
ci: add required-ci aggregator job (#377)
* ci: add required-ci aggregator job Adds a single "Required CI" job that depends on the test matrix and fails if any test variant did not succeed. This lets branch protection target one stable check name instead of every matrix combination. * ci: make required-ci check generic across all needed jobs
1 parent 5abedec commit f759a68

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ jobs:
4141
run: yarn lint && yarn test
4242
- name: Build docs
4343
run: yarn build:docs
44+
45+
required-ci:
46+
name: Required CI
47+
if: always()
48+
needs:
49+
- test
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Check job results
53+
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
54+
run: exit 1

0 commit comments

Comments
 (0)