Skip to content

Commit

Permalink
Fail the workflow if anything earlier fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdsgl authored May 18, 2024
1 parent 02d860f commit 6150474
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6150474

Please sign in to comment.