Skip to content

Commit

Permalink
Fail the workflow if anything earlier fails (#2601)
Browse files Browse the repository at this point in the history
* Fail the workflow if anything earlier fails

* Update test-pr.yaml
  • Loading branch information
dvdsgl authored May 18, 2024
1 parent 02d860f commit 8521c65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ jobs:
- run: QUICKTEST=true FIXTURE=${{ matrix.fixture }} npm test

test-complete:
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 8521c65

Please sign in to comment.