From e21631e5753417c6b42973ab55bef46043ee1fda Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 15 Jul 2026 11:54:56 +0100 Subject: [PATCH] Fail coverage GHA job when tests fail Add an explicit guard to ensure that the coverage job fails if the tests fail, so that if only some tests fail but coverage remains 100%, the required coverage job does not complete. --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13a3287..ca13964 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,6 +58,10 @@ jobs: needs: tests if: always() steps: + - name: Check all test jobs passed + if: needs.tests.result != 'success' + run: exit 1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false