test results

-run test results as a separate task
This commit is contained in:
marauder2k7 2023-07-26 14:12:00 +01:00
parent bbe0198709
commit a603180774
3 changed files with 42 additions and 8 deletions

23
.github/actions/test-results/action.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Build Torque Test Report
description: Upload Torques unit test artifact.
inputs:
name:
description: The name of the unit test.
default: "${{github.job}}"
artifact-name:
description: The name of the artifact.
required: true
path:
description: The path to the upload.
required: true
default: "**/My Projects/Torque3D/game/test_detail.xml"
runs:
using: "composite"
steps:
- name: Test Reporter
uses: phoenix-actions/test-reporting@v12
with:
artifact: torque3dWindowsMSVCUnitTest
name: ${{inputs.name}}
path: ${{inputs.path}}
reporter: java-junit

View file

@ -62,11 +62,3 @@ jobs:
uses: ./.github/actions/upload-artifact
with:
name: torque3dWindowsMSVCUnitTest
- name: Test Reporter
uses: phoenix-actions/test-reporting@v12
if: success() || failure() # run this step even if previous step failed
with:
name: Build Tests
path: My Projects/Torque3D/game/test_*.xml
reporter: java-junit

View file

@ -0,0 +1,19 @@
name: Windows Test Results
on:
workflow_run:
workflows: [Windows Build 🟥🟩🟦🟨]
types: [ completed ]
permissions:
checks: write
jobs:
checks:
runs-on: windows-latest
steps:
- name: Upload Artifact
uses: ./.github/actions/upload-artifact
with:
artifact-name: torque3dWindowsMSVCUnitTest
name: Windows Test Results