Merge pull request #1006 from lukaspj/fix-test-reporting

WIP: Fix test reporting to work with multiple OS
This commit is contained in:
Brian Roberts 2023-04-08 09:00:13 -05:00 committed by GitHub
commit 9d0cb3cc41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 5 deletions

View file

@ -70,6 +70,6 @@ jobs:
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'
name: junit-test-results-${{ runner.os }}
path: '**/My Projects/Torque3D/game/test_detail.xml'
retention-days: 1

View file

@ -11,14 +11,34 @@ jobs:
checks:
runs-on: ubuntu-latest
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
with:
name: junit-test-results
path: Windows
name: junit-test-results-Windows
workflow: ${{ github.event.workflow.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
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'
report_paths: '**/My Projects/Torque3D/game/test_detail.xml'