From fba034195eb9b3a13eb1c17a6be5c4d9c4826b80 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Thu, 27 Jul 2023 09:25:32 +0100 Subject: [PATCH 1/3] 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 a43675be7e5174c3cf9fb55baa3c1a768e176aa7 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Thu, 27 Jul 2023 09:53:52 +0100 Subject: [PATCH 2/3] test runner --- .github/workflows/build-windows-msvc.yml | 1 - .github/workflows/test-results-linux.yml | 40 ++++++++++++++++++++++ .github/workflows/test-results-mac.yml | 40 ++++++++++++++++++++++ .github/workflows/test-results-windows.yml | 40 ++++++++++++++++++++++ 4 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-results-linux.yml create mode 100644 .github/workflows/test-results-mac.yml create mode 100644 .github/workflows/test-results-windows.yml diff --git a/.github/workflows/build-windows-msvc.yml b/.github/workflows/build-windows-msvc.yml index ee642d711..6dd243048 100644 --- a/.github/workflows/build-windows-msvc.yml +++ b/.github/workflows/build-windows-msvc.yml @@ -9,7 +9,6 @@ concurrency: cancel-in-progress: true jobs: build-windows: - if: github.repository == 'TorqueGameEngines/Torque3D' name: ${{matrix.config.name}} runs-on: windows-latest strategy: diff --git a/.github/workflows/test-results-linux.yml b/.github/workflows/test-results-linux.yml new file mode 100644 index 000000000..0792902a1 --- /dev/null +++ b/.github/workflows/test-results-linux.yml @@ -0,0 +1,40 @@ +name: Report Test Results +on: + workflow_run: + workflows: ["Linux Build"] + types: + - completed + +permissions: + checks: write + +jobs: + checks: + name: ${{matrix.config.name}} + runs-on: ${{matrix.config.runos}} + strategy: + fail-fast: false + matrix: + config: + - { + name: "Linux Test Results", + runos: ubuntu-latest, + artifact-name: "torque3dLinuxGCCUnitTest" + } + + 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 diff --git a/.github/workflows/test-results-mac.yml b/.github/workflows/test-results-mac.yml new file mode 100644 index 000000000..8c55748a1 --- /dev/null +++ b/.github/workflows/test-results-mac.yml @@ -0,0 +1,40 @@ +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: 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..0fa435464 --- /dev/null +++ b/.github/workflows/test-results-windows.yml @@ -0,0 +1,40 @@ +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: 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 From 74d87c54a018e9c89e7a6840caf072fc36a7a161 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Tue, 1 Aug 2023 06:43:45 +0100 Subject: [PATCH 3/3] Update test-results-linux.yml --- .github/workflows/test-results-linux.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/test-results-linux.yml b/.github/workflows/test-results-linux.yml index c7a5977f6..7f61a8c5f 100644 --- a/.github/workflows/test-results-linux.yml +++ b/.github/workflows/test-results-linux.yml @@ -21,15 +21,6 @@ jobs: runos: ubuntu-latest, artifact-name: "torque3dLinuxGCCUnitTest" } -<<<<<<<< HEAD:.github/workflows/test-results.yml - - { - name: "Mac Test Results", - runos: macos-latest, - artifact-name: "torque3dMacOSXCLANGUnitTest" - } -======== ->>>>>>>> upstream/development:.github/workflows/test-results-linux.yml - steps: - name: Download Linux Test Report uses: dawidd6/action-download-artifact@v2