Browse Source

test results

-run test results as a separate task
marauder2k7 2 years ago
parent
commit
a603180774

+ 23 - 0
.github/actions/test-results/action.yml

@@ -0,0 +1,23 @@
+name: Build Torque Test Report
+description: Upload Torques unit test artifact.
+inputs:
+    name:
+        description: The name of the unit test.
+        default: "${{github.job}}"
+    artifact-name:
+        description: The name of the artifact.
+        required: true
+    path:
+        description: The path to the upload.
+        required: true
+        default: "**/My Projects/Torque3D/game/test_detail.xml"
+runs:
+  using: "composite"
+  steps:
+    - name: Test Reporter
+      uses: phoenix-actions/test-reporting@v12
+      with:
+        artifact: torque3dWindowsMSVCUnitTest
+        name: ${{inputs.name}}
+        path: ${{inputs.path}}
+        reporter: java-junit 

+ 0 - 8
.github/workflows/build-windows-msvc.yml

@@ -62,11 +62,3 @@ jobs:
               uses: ./.github/actions/upload-artifact
               with:
                 name: torque3dWindowsMSVCUnitTest
-
-            - name: Test Reporter
-              uses: phoenix-actions/test-reporting@v12
-              if: success() || failure()    # run this step even if previous step failed
-              with:
-                name: Build Tests
-                path: My Projects/Torque3D/game/test_*.xml
-                reporter: java-junit 

+ 19 - 0
.github/workflows/test-results-windows.yml

@@ -0,0 +1,19 @@
+name: Windows Test Results
+on:
+  workflow_run:
+    workflows: [Windows Build 🟥🟩🟦🟨]
+    types: [ completed ]
+
+permissions:
+    checks: write
+
+jobs:
+  checks:
+    runs-on: windows-latest
+    steps:
+      - name: Upload Artifact
+        uses: ./.github/actions/upload-artifact
+        with:
+          artifact-name: torque3dWindowsMSVCUnitTest
+          name: Windows Test Results
+