Prevent tests from never ending due to threading bug

This commit is contained in:
Lukas Aldershaab 2023-04-08 00:50:57 +02:00
parent 9269a4e13b
commit be4f3e7f1b
2 changed files with 72 additions and 2 deletions

View file

@ -66,9 +66,42 @@ jobs:
fi
shell: bash
- name: Upload Test Report
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: junit-test-results
path: '${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml'
retention-days: 1
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml'
---
name: Report Test Results
on:
workflow_run:
workflows: [CMake]
types: [completed]
permissions:
checks: write
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Download Test Report
uses: dawidd6/action-download-artifact@v2
with:
name: junit-test-results
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
with:
commit: ${{github.event.workflow_run.head_sha}}
report_paths: '${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml'