From 923621985ba15c01e38a7ce3b3998668b33b56ac Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 25 Mar 2026 16:30:22 -0700 Subject: [PATCH 1/2] 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. --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e69636c..531123f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,3 +41,14 @@ jobs: run: yarn lint && yarn test - name: Build docs run: yarn build:docs + + required-ci: + name: Required CI + if: always() + needs: + - test + runs-on: ubuntu-latest + steps: + - name: Check test results + if: needs.test.result != 'success' && needs.test.result != 'skipped' + run: exit 1 From a894a32ab9961c051c602b170485206d73902639 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 25 Mar 2026 16:31:19 -0700 Subject: [PATCH 2/2] ci: make required-ci check generic across all needed jobs --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 531123f4..56f542a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,6 +49,6 @@ jobs: - test runs-on: ubuntu-latest steps: - - name: Check test results - if: needs.test.result != 'success' && needs.test.result != 'skipped' + - name: Check job results + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') run: exit 1