From 0f52f410ba8c2fbdeeddda094c411dedaa857912 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Thu, 27 Jul 2023 08:47:03 +0100 Subject: [PATCH 1/5] Update test-results.yml --- .github/workflows/test-results.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-results.yml b/.github/workflows/test-results.yml index 12fbe4b9d..9e9082fd5 100644 --- a/.github/workflows/test-results.yml +++ b/.github/workflows/test-results.yml @@ -23,10 +23,12 @@ jobs: } - { name: "Linux Test Results", + runos: ubuntu-latest, artifact-name: "torque3dLinuxGCCUnitTest" } - { name: "Mac Test Results", + runos: macos-latest, artifact-name: "torque3dMacOSXCLANGUnitTest" } From cd01077f50b95e29e936de949407dc714c6c987c Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Thu, 27 Jul 2023 08:48:26 +0100 Subject: [PATCH 2/5] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) From b85a256c1c00dbd7b543914dd6b3baca3f64830e Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Thu, 27 Jul 2023 09:33:36 +0100 Subject: [PATCH 3/5] test results --- ...est-results.yml => test-results-linux.yml} | 12 +------ .github/workflows/test-results-mac.yml | 32 +++++++++++++++++++ .github/workflows/test-results-windows.yml | 32 +++++++++++++++++++ 3 files changed, 65 insertions(+), 11 deletions(-) rename .github/workflows/{test-results.yml => test-results-linux.yml} (65%) create mode 100644 .github/workflows/test-results-mac.yml create mode 100644 .github/workflows/test-results-windows.yml diff --git a/.github/workflows/test-results.yml b/.github/workflows/test-results-linux.yml similarity index 65% rename from .github/workflows/test-results.yml rename to .github/workflows/test-results-linux.yml index 9e9082fd5..9e87f3997 100644 --- a/.github/workflows/test-results.yml +++ b/.github/workflows/test-results-linux.yml @@ -1,7 +1,7 @@ name: Report Test Results on: workflow_run: - workflows: ["Windows Build", "Linux Build", "MacOSX Build"] + workflows: ["Linux Build"] types: - completed @@ -16,21 +16,11 @@ 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", - runos: macos-latest, - artifact-name: "torque3dMacOSXCLANGUnitTest" - } steps: - name: Test Reporter diff --git a/.github/workflows/test-results-mac.yml b/.github/workflows/test-results-mac.yml new file mode 100644 index 000000000..692aeb28c --- /dev/null +++ b/.github/workflows/test-results-mac.yml @@ -0,0 +1,32 @@ +name: Report 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: 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..c931fadc5 --- /dev/null +++ b/.github/workflows/test-results-windows.yml @@ -0,0 +1,32 @@ +name: Report 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: 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 From 360aaf5787e8392ba54cbf9743dcb7e70252dc4f Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Thu, 27 Jul 2023 09:49:25 +0100 Subject: [PATCH 4/5] download artifact --- .github/workflows/test-results-linux.yml | 10 +++++++++- .github/workflows/test-results-mac.yml | 10 +++++++++- .github/workflows/test-results-windows.yml | 10 +++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-results-linux.yml b/.github/workflows/test-results-linux.yml index 9e87f3997..0792902a1 100644 --- a/.github/workflows/test-results-linux.yml +++ b/.github/workflows/test-results-linux.yml @@ -23,10 +23,18 @@ jobs: } 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 index 692aeb28c..8c55748a1 100644 --- a/.github/workflows/test-results-mac.yml +++ b/.github/workflows/test-results-mac.yml @@ -23,10 +23,18 @@ jobs: } 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 + reporter: java-junit diff --git a/.github/workflows/test-results-windows.yml b/.github/workflows/test-results-windows.yml index c931fadc5..0fa435464 100644 --- a/.github/workflows/test-results-windows.yml +++ b/.github/workflows/test-results-windows.yml @@ -23,10 +23,18 @@ jobs: } 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 + reporter: java-junit From afd1326d9aae57256f5fffa5e7d57072c125eeca Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Thu, 27 Jul 2023 10:37:36 +0100 Subject: [PATCH 5/5] test results per platform --- .github/workflows/test-results-linux.yml | 2 +- .github/workflows/test-results-mac.yml | 2 +- .github/workflows/test-results-windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-results-linux.yml b/.github/workflows/test-results-linux.yml index 0792902a1..41ce59577 100644 --- a/.github/workflows/test-results-linux.yml +++ b/.github/workflows/test-results-linux.yml @@ -1,4 +1,4 @@ -name: Report Test Results +name: Linux Test Results on: workflow_run: workflows: ["Linux Build"] diff --git a/.github/workflows/test-results-mac.yml b/.github/workflows/test-results-mac.yml index 8c55748a1..6e50b530c 100644 --- a/.github/workflows/test-results-mac.yml +++ b/.github/workflows/test-results-mac.yml @@ -1,4 +1,4 @@ -name: Report Test Results +name: Mac Test Results on: workflow_run: workflows: ["MacOSX Build"] diff --git a/.github/workflows/test-results-windows.yml b/.github/workflows/test-results-windows.yml index 0fa435464..1e0052340 100644 --- a/.github/workflows/test-results-windows.yml +++ b/.github/workflows/test-results-windows.yml @@ -1,4 +1,4 @@ -name: Report Test Results +name: Windows Test Results on: workflow_run: workflows: ["Windows Build"]