Skip to content

Commit 1d2dc2f

Browse files
authored
GitHub Actions: Fix wait-for-all-tests (#62)
1 parent 29847c2 commit 1d2dc2f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,13 @@ jobs:
204204
run: exit 1
205205

206206
wait-for-all-tests:
207+
if: cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure')
207208
needs:
208209
- positive
209210
- outputs
210211
- negative
211212
- missing
212213
runs-on: ubuntu-latest
213214
steps:
214-
- run: echo "All tests passed!"
215+
- name: Assert no required jobs were cancelled or failed
216+
run: exit 1

0 commit comments

Comments
 (0)