File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,23 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - name : Download Test Result Artifact
13
+ - name : Download All Test Results
14
14
uses : actions/download-artifact@v4
15
15
with :
16
- name : TESTS_PASSED
17
- path : . # Current directory
16
+ path : test-results # Store all test result files here
18
17
19
- - name : Read Test Result
20
- id : read_test_result
21
- run : echo "TESTS_PASSED=$(cat test_result.txt)" >> $GITHUB_ENV
18
+ - name : Aggregate Test Results
19
+ id : aggregate_tests
20
+ run : |
21
+ FAILED_TESTS=0
22
+ for file in test-results/*; do
23
+ TEST_STATUS=$(cat "$file")
24
+ if [[ "$TEST_STATUS" == "failure" ]]; then
25
+ FAILED_TESTS=$((FAILED_TESTS + 1))
26
+ fi
27
+ done
28
+
29
+ echo "TOTAL_FAILED_TESTS=$FAILED_TESTS" >> $GITHUB_ENV
22
30
23
31
- name : Read Commit Message
24
32
id : commit_msg
You can’t perform that action at this time.
0 commit comments