Merge pull request #1067 from marauder2k9-torque/TestReporter

Update test-results.yml
This commit is contained in:
Brian Roberts 2023-07-27 10:56:04 -05:00 committed by GitHub
commit 7c37b38f03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 95 additions and 15 deletions

View file

@ -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

40
.github/workflows/test-results-mac.yml vendored Normal file
View file

@ -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

View file

@ -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

View file

@ -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)