Skip to content

Commit 8521c65

Browse files
authored
Fail the workflow if anything earlier fails (#2601)
* Fail the workflow if anything earlier fails * Update test-pr.yaml
1 parent 02d860f commit 8521c65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test-pr.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ jobs:
187187
- run: QUICKTEST=true FIXTURE=${{ matrix.fixture }} npm test
188188

189189
test-complete:
190+
if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }}
190191
needs: test
191192
runs-on: ubuntu-latest
192193
steps:
193-
- run: echo 🎉
194+
- run: |
195+
echo "Some workflows have failed!"
196+
exit 1

0 commit comments

Comments
 (0)