8080 files : ./artifacts/**/*.xml
8181 action_fail : true
8282 compare_to_earlier_commit : false
83+ json_file : ./validation_results.json
84+ json_suite_details : true
85+
86+ - name : Upload JSON
87+ uses : actions/upload-artifact@v4
88+ if : ${{ always() }}
89+ with :
90+ name : test_results
91+ path : ./validation_results.json
92+ overwrite : true
8393
8494 - name : Fail if tests failed
8595 if : ${{ env.original_conclusion == 'failure' || env.original_conclusion == 'timed_out' || github.event.workflow_run.conclusion == 'failure' || github.event.workflow_run.conclusion == 'timed_out' }}
@@ -138,11 +148,14 @@ jobs:
138148 })).data;
139149 core.info(`${name} is ${state}`);
140150
141- - name : Create output folder
151+ - name : Generate report
142152 if : ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
143153 run : |
144- rm -rf artifacts
154+ rm -rf artifacts runtime-tests-results/RUNTIME_TESTS_REPORT.md
145155 mkdir -p runtime-tests-results
156+ mv -f ./validation_results.json ./runtime-tests-results/validation_results.json
157+ touch ./runtime-tests-results/RUNTIME_TESTS_REPORT.md
158+
146159
147160 - name : Generate badge
148161 if : ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
@@ -161,6 +174,6 @@ jobs:
161174 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
162175 if [[ `git status --porcelain` ]]; then
163176 git add --all
164- git commit -m "Updated runtime tests badge "
177+ git commit -m "Updated runtime tests report "
165178 git push origin HEAD:gh-pages
166179 fi
0 commit comments