From 45cf3d78da40f5118ba9152f534637f73df285ef Mon Sep 17 00:00:00 2001 From: robonen Date: Wed, 10 Jun 2026 16:23:03 +0700 Subject: [PATCH] feat(ci): add sentinel job to aggregate matrix results and ensure all checks pass --- .github/workflows/ci.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 27f7dc6..488aaaa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,3 +85,18 @@ jobs: - name: Test run: pnpm --filter "${{ matrix.package }}" --if-present run test + + # Sentinel job — aggregates all matrix results into a single status check. + # Add "CI" as the required check in branch protection rules. + ci: + name: CI + needs: check + if: always() + runs-on: ubuntu-latest + steps: + - name: All checks passed + run: | + if [[ "${{ needs.check.result }}" != "success" ]]; then + echo "One or more package checks failed: ${{ needs.check.result }}" + exit 1 + fi