File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 147147print ("" )
148148
149149try :
150- print (f"[Commit](https://github.com/{ os .environ ['GITHUB_REPOSITORY' ]} /commit/{ commit_sha } ) / [Build and QEMU run](https://github.com/{ os .environ ['GITHUB_REPOSITORY' ]} /actions/runs/{ os .environ ['BUILD_RUN_ID' ]} ) / [Hardware and Wokwi run](https://github.com/{ os .environ ['GITHUB_REPOSITORY' ]} /actions/runs/{ os .environ ['WOKWI_RUN_ID' ]} )" )
150+ repo = os .environ ['GITHUB_REPOSITORY' ]
151+ commit_url = f"https://github.com/{ repo } /commit/{ commit_sha } "
152+ build_workflow_url = f"https://github.com/{ repo } /actions/runs/{ os .environ ['BUILD_RUN_ID' ]} "
153+ wokwi_hw_workflow_url = f"https://github.com/{ repo } /actions/runs/{ os .environ ['WOKWI_RUN_ID' ]} "
154+ results_workflow_url = f"https://github.com/{ repo } /actions/runs/{ os .environ ['RESULTS_RUN_ID' ]} "
155+ results_url = os .environ ['RESULTS_URL' ]
156+ print (f"[Commit]({ commit_url } ) / [Build and QEMU run]({ build_workflow_url } ) / [Hardware and Wokwi run]({ wokwi_hw_workflow_url } ) / [Results processing]({ results_workflow_url } )" )
157+ print (f"[Test results]({ results_url } )" )
151158except KeyError :
152159 pass
153160
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ jobs:
149149 python3 ./generate_missing_junits.py ./build_artifacts ./artifacts ./test_errors
150150
151151 - name : Publish Unit Test Results
152+ id : publish-test-results
152153 uses : EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
153154 with :
154155 commit : ${{ needs.get-artifacts.outputs.original_sha }}
@@ -250,6 +251,8 @@ jobs:
250251 QEMU_TYPES : ${{ needs.get-artifacts.outputs.qemu_types }}
251252 WOKWI_RUN_ID : ${{ github.event.workflow_run.id }}
252253 BUILD_RUN_ID : ${{ needs.get-artifacts.outputs.original_run_id }}
254+ RESULTS_URL : ${{ fromJSON( steps.publish-test-results.outputs.json ).check_url }}
255+ RESULTS_RUN_ID : ${{ github.run_id }}
253256 REPORT_FILE : ./runtime-test-results/RUNTIME_TEST_RESULTS.md
254257 IS_FAILING : >-
255258 ${{
You can’t perform that action at this time.
0 commit comments