File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ jobs:
616
616
gather :
617
617
# A dummy task that depends on the full matrix of tests, and
618
618
# signals successful completion. Used for the PR status to pass
619
- # before merging.
619
+ # before merging. Needs to run even if they failed!
620
620
name : CI completion
621
621
runs-on : ubuntu-22.04
622
622
needs :
@@ -626,7 +626,28 @@ jobs:
626
626
- integration-sanitizers
627
627
- min-btc-support
628
628
- check-flake
629
+ if : ${{ always() }}
629
630
steps :
630
631
- name : Complete
632
+ env :
633
+ JOB_NAMES : " INTEGRATION CHECK_UNITS VALGRIND SANITIZERS BTC FLAKE"
634
+ INTEGRATION : ${{ needs.integration.result }}
635
+ CHECK_UNITS : ${{ needs['check-units'].result }}
636
+ VALGRIND : ${{ needs['integration-valgrind'].result }}
637
+ SANITIZERS : ${{ needs['integration-sanitizers'].result }}
638
+ DOCS : ${{ needs['update-docs-examples'].result }}
639
+ BTC : ${{ needs['min-btc-support'].result }}
640
+ FLAKE : ${{ needs['check-flake'].result }}
631
641
run : |
632
- echo CI completed successfully
642
+ failed=""
643
+ for name in $JOB_NAMES; do
644
+ result="${!name}"
645
+ echo "$name: $result"
646
+ if [[ "$result" != "success" ]]; then
647
+ failed="yes"
648
+ fi
649
+ done
650
+ if [[ "$failed" == "yes" ]]; then
651
+ echo "One or more required jobs failed"
652
+ exit 1
653
+ fi
You can’t perform that action at this time.
0 commit comments