File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,22 @@ jobs:
34
34
needs : build
35
35
runs-on : self-hosted
36
36
timeout-minutes : 2
37
+ env :
38
+ test-result-file : test_result.txt
37
39
38
40
steps :
39
41
- name : Run tests
40
42
run : |
41
- python3 ./run_tests.py --build-dir=${{ env.build_dir }} | tee >(grep -qE "FAILED|ERROR" && echo "HAS_ERRORS=true" >> $GITHUB_ENV)
42
- if [[ $HAS_ERRORS == "true" ]]; then
43
+ python3 ./run_tests.py --build-dir=${{ env.build_dir }} | tee ${{ env.test-result-file }}
44
+
45
+ - name : Upload tests results
46
+ uses : actions/upload-artifact@v4
47
+ with :
48
+ name : ${{ env.test-result-file }}
49
+ path : ${{ env.test-result-file }}
50
+
51
+ - name : Check for tests results
52
+ run : |
53
+ if cat ${{ env.test-result-file }} | grep -q "FAILED"; then
43
54
exit 1
44
55
fi
You can’t perform that action at this time.
0 commit comments