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