From 42cec1eb73e047a531f71d29193011135a0e5bf6 Mon Sep 17 00:00:00 2001 From: Jeremy Walker Date: Sun, 8 Nov 2026 17:22:06 +0900 Subject: [PATCH] Add a summary job for Tests The exercise tests run as one job per configuration, named after it. The new Tests job waits for all of them and passes only if every one passed, so required-checks.yml can list one stable name. Co-Authored-By: Claude Opus 5.5 --- .github/required-checks.yml | 1 + .github/workflows/ci.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.github/required-checks.yml b/.github/required-checks.yml index 44a1a86a..65a7031b 100644 --- a/.github/required-checks.yml +++ b/.github/required-checks.yml @@ -12,4 +12,5 @@ checks: - Pre-commit checks - configlet / configlet - i18n / completeness + - Tests - Validate required checks diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86763952..aedf07f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,3 +88,21 @@ jobs: cmake . cmake --build . -- test_hello-world cmake --build . + + tests: + name: Tests + needs: [linux-min, linux-latest, windows, mac] + if: always() + runs-on: ubuntu-26.04 + steps: + - name: Check that every configuration passed + env: + LINUX_MIN_RESULT: ${{ needs.linux-min.result }} + LINUX_LATEST_RESULT: ${{ needs.linux-latest.result }} + WINDOWS_RESULT: ${{ needs.windows.result }} + MAC_RESULT: ${{ needs.mac.result }} + run: | + if [[ "$LINUX_MIN_RESULT" != "success" || "$LINUX_LATEST_RESULT" != "success" || "$WINDOWS_RESULT" != "success" || "$MAC_RESULT" != "success" ]]; then + echo "The exercise tests failed on at least one configuration." + exit 1 + fi