File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 32
32
# Aggregate job that provides a single check for all tests passing
33
33
tests :
34
34
runs-on : ubuntu-24.04
35
+ if : always() # Always run, even on cancellation or failure
35
36
needs :
36
37
- python
37
38
- cassandra
@@ -55,13 +56,23 @@ jobs:
55
56
- valkey
56
57
57
58
steps :
58
- - name : Success
59
- run : echo "Success!"
59
+ - name : Status
60
+ run : |
61
+ if [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
62
+ echo "Workflow cancelled."
63
+ exit 1
64
+ elif [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
65
+ echo "One or more jobs failed."
66
+ exit 1
67
+ else
68
+ echo "All jobs completed successfully."
69
+ exit 0
70
+ fi
60
71
61
72
# Combine and upload coverage data
62
73
coverage :
63
- if : success() || failure() # Does not run on cancelled workflows
64
74
runs-on : ubuntu-24.04
75
+ if : success() || failure() # Does not run on cancelled workflows
65
76
needs :
66
77
- tests
67
78
You can’t perform that action at this time.
0 commit comments