Fix GitHub Workflow

This commit is contained in:
Lukas Aldershaab 2023-04-08 00:58:08 +02:00
parent 9572a3b5e4
commit 77c5328369
2 changed files with 24 additions and 26 deletions

View file

@ -73,29 +73,3 @@ jobs:
name: junit-test-results
path: '${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml'
retention-days: 1
---
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'

24
.github/workflows/test-results.yml vendored Normal file
View file

@ -0,0 +1,24 @@
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'