diff --git a/.github/actions/test-results/action.yml b/.github/actions/test-results/action.yml new file mode 100644 index 000000000..f738bccb5 --- /dev/null +++ b/.github/actions/test-results/action.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/build-windows-msvc.yml b/.github/workflows/build-windows-msvc.yml index e425afa39..299f16500 100644 --- a/.github/workflows/build-windows-msvc.yml +++ b/.github/workflows/build-windows-msvc.yml @@ -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 diff --git a/.github/workflows/test-results-windows.yml b/.github/workflows/test-results-windows.yml new file mode 100644 index 000000000..3281904e3 --- /dev/null +++ b/.github/workflows/test-results-windows.yml @@ -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 +