diff --git a/.github/workflows/test-results.yml b/.github/workflows/test-results-linux.yml similarity index 61% rename from .github/workflows/test-results.yml rename to .github/workflows/test-results-linux.yml index 12fbe4b9d..41ce59577 100644 --- a/.github/workflows/test-results.yml +++ b/.github/workflows/test-results-linux.yml @@ -1,7 +1,7 @@ -name: Report Test Results +name: Linux Test Results on: workflow_run: - workflows: ["Windows Build", "Linux Build", "MacOSX Build"] + workflows: ["Linux Build"] types: - completed @@ -16,25 +16,25 @@ jobs: fail-fast: false matrix: config: - - { - name: "Windows Test Results", - runos: windows-latest, - artifact-name: "torque3dLinuxGCCUnitTest" - } - { name: "Linux Test Results", + runos: ubuntu-latest, artifact-name: "torque3dLinuxGCCUnitTest" } - - { - name: "Mac Test Results", - artifact-name: "torque3dMacOSXCLANGUnitTest" - } steps: + - name: Download Linux Test Report + uses: dawidd6/action-download-artifact@v2 + with: + path: Linux + name: ${{matrix.config.artifact-name}} + workflow: ${{ github.event.workflow.id }} + run_id: ${{ github.event.workflow_run.id }} + - name: Test Reporter uses: phoenix-actions/test-reporting@v12 with: artifact: ${{matrix.config.artifact-name}} name: ${{matrix.config.name}} path: "**/My Projects/Torque3D/game/test_detail.xml" - reporter: java-junit + reporter: java-junit diff --git a/.github/workflows/test-results-mac.yml b/.github/workflows/test-results-mac.yml new file mode 100644 index 000000000..6e50b530c --- /dev/null +++ b/.github/workflows/test-results-mac.yml @@ -0,0 +1,40 @@ +name: Mac Test Results +on: + workflow_run: + workflows: ["MacOSX Build"] + types: + - completed + +permissions: + checks: write + +jobs: + checks: + name: ${{matrix.config.name}} + runs-on: ${{matrix.config.runos}} + strategy: + fail-fast: false + matrix: + config: + - { + name: "Mac Test Results", + runos: macos-latest, + artifact-name: "torque3dMacOSXCLANGUnitTest" + } + + steps: + - name: Download Mac Test Report + uses: dawidd6/action-download-artifact@v2 + with: + path: macOS + name: ${{matrix.config.artifact-name}} + workflow: ${{ github.event.workflow.id }} + run_id: ${{ github.event.workflow_run.id }} + + - name: Test Reporter + uses: phoenix-actions/test-reporting@v12 + with: + artifact: ${{matrix.config.artifact-name}} + name: ${{matrix.config.name}} + path: "**/My Projects/Torque3D/game/test_detail.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..1e0052340 --- /dev/null +++ b/.github/workflows/test-results-windows.yml @@ -0,0 +1,40 @@ +name: Windows Test Results +on: + workflow_run: + workflows: ["Windows Build"] + types: + - completed + +permissions: + checks: write + +jobs: + checks: + name: ${{matrix.config.name}} + runs-on: ${{matrix.config.runos}} + strategy: + fail-fast: false + matrix: + config: + - { + name: "Windows Test Results", + runos: windows-latest, + artifact-name: "torque3dWindowsMSVCUnitTest" + } + + steps: + - name: Download Windows Test Report + uses: dawidd6/action-download-artifact@v2 + with: + path: Windows + name: ${{matrix.config.artifact-name}} + workflow: ${{ github.event.workflow.id }} + run_id: ${{ github.event.workflow_run.id }} + + - name: Test Reporter + uses: phoenix-actions/test-reporting@v12 + with: + artifact: ${{matrix.config.artifact-name}} + name: ${{matrix.config.name}} + path: "**/My Projects/Torque3D/game/test_detail.xml" + reporter: java-junit diff --git a/README.md b/README.md index 35059a4ad..93aeeed6c 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ MIT Licensed Open Source version of [Torque3D](https://torque3d.org) from [Garag **Build Status:** -[![Windows Build 🟥🟩🟦🟨](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-windows-msvc.yml/badge.svg)](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-windows-msvc.yml) +[![Windows Build](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-windows-msvc.yml/badge.svg)](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-windows-msvc.yml) -[![Linux Build 🐧](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-linux-gcc.yml/badge.svg)](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-linux-gcc.yml) +[![Linux Build](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-linux-gcc.yml/badge.svg)](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-linux-gcc.yml) -[![MacOSX Build 🍎](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-macos-clang.yml/badge.svg)](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-macos-clang.yml) +[![MacOSX Build](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-macos-clang.yml/badge.svg)](https://github.com/TorqueGameEngines/Torque3D/actions/workflows/build-macos-clang.yml)