From 615047447f936aab005aeb5d60cd313eb6ec9e0b Mon Sep 17 00:00:00 2001 From: David Siegel Date: Sat, 18 May 2024 11:04:01 -0700 Subject: [PATCH] Fail the workflow if anything earlier fails --- .github/workflows/test-pr.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index fcc5af749..983525dce 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -186,8 +186,11 @@ jobs: - run: QUICKTEST=true FIXTURE=${{ matrix.fixture }} npm test - test-complete: + rethrow: + if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }} needs: test runs-on: ubuntu-latest steps: - - run: echo 🎉 + - run: | + echo "Some workflows have failed!" + exit 1