From 3eb92f3d5759a45a1ee5db0e427672bfa4b33941 Mon Sep 17 00:00:00 2001 From: Nick McCready Date: Wed, 25 Mar 2026 21:20:34 -0400 Subject: [PATCH] ci: add tests summary job for branch protection --- .github/workflows/tests.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b2eaafd0..29835181 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,3 +24,20 @@ jobs: - run: npm install - run: npm run lint - run: npm test + + tests: + name: tests + needs: [test] + runs-on: ubuntu-latest + if: always() + steps: + - name: Check test results + run: | + results=($(echo '${{ toJSON(needs.*.result) }}' | jq -r '.[]')) + for r in "${results[@]}"; do + if [[ "$r" != "success" ]]; then + echo "One or more jobs failed: $r" + exit 1 + fi + done + echo "All jobs passed"