mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1006 from lukaspj/fix-test-reporting
WIP: Fix test reporting to work with multiple OS
This commit is contained in:
commit
9d0cb3cc41
2 changed files with 25 additions and 5 deletions
4
.github/workflows/cmake.yml
vendored
4
.github/workflows/cmake.yml
vendored
|
|
@ -70,6 +70,6 @@ jobs:
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: always() # always run even if the previous step fails
|
if: always() # always run even if the previous step fails
|
||||||
with:
|
with:
|
||||||
name: junit-test-results
|
name: junit-test-results-${{ runner.os }}
|
||||||
path: '${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml'
|
path: '**/My Projects/Torque3D/game/test_detail.xml'
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
|
||||||
26
.github/workflows/test-results.yml
vendored
26
.github/workflows/test-results.yml
vendored
|
|
@ -11,14 +11,34 @@ jobs:
|
||||||
checks:
|
checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download Test Report
|
# See https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
|
||||||
|
# for a list of possible values
|
||||||
|
- name: Download Windows Test Report
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: junit-test-results
|
path: Windows
|
||||||
|
name: junit-test-results-Windows
|
||||||
workflow: ${{ github.event.workflow.id }}
|
workflow: ${{ github.event.workflow.id }}
|
||||||
run_id: ${{ github.event.workflow_run.id }}
|
run_id: ${{ github.event.workflow_run.id }}
|
||||||
|
|
||||||
|
- name: Download Linux Test Report
|
||||||
|
uses: dawidd6/action-download-artifact@v2
|
||||||
|
with:
|
||||||
|
path: Linux
|
||||||
|
name: junit-test-results-Linux
|
||||||
|
workflow: ${{ github.event.workflow.id }}
|
||||||
|
run_id: ${{ github.event.workflow_run.id }}
|
||||||
|
|
||||||
|
- name: Download Mac Test Report
|
||||||
|
uses: dawidd6/action-download-artifact@v2
|
||||||
|
with:
|
||||||
|
path: macOS
|
||||||
|
name: junit-test-results-macOS
|
||||||
|
workflow: ${{ github.event.workflow.id }}
|
||||||
|
run_id: ${{ github.event.workflow_run.id }}
|
||||||
|
|
||||||
- name: Publish Test Report
|
- name: Publish Test Report
|
||||||
uses: mikepenz/action-junit-report@v3
|
uses: mikepenz/action-junit-report@v3
|
||||||
with:
|
with:
|
||||||
commit: ${{github.event.workflow_run.head_sha}}
|
commit: ${{github.event.workflow_run.head_sha}}
|
||||||
report_paths: '${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml'
|
report_paths: '**/My Projects/Torque3D/game/test_detail.xml'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue