2
0
Эх сурвалжийг харах

Merge pull request #1067 from marauder2k9-torque/TestReporter

Update test-results.yml
Brian Roberts 2 жил өмнө
parent
commit
7c37b38f03

+ 12 - 12
.github/workflows/test-results.yml → .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

+ 40 - 0
.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

+ 40 - 0
.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

+ 3 - 3
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)