remove upload

-Removed: Upload artifact
-Simplified the test reporter steps

GIT CI seems to have major issues with the upload/download steps at the moment, so remove these and just report the test results
This commit is contained in:
marauder2k7 2024-05-14 02:25:28 +01:00
parent f3a7263503
commit afaf228d05
7 changed files with 15 additions and 149 deletions

View file

@ -1,20 +0,0 @@
name: Upload Torque Test Report
description: Upload Torques unit test artifact.
inputs:
name:
description: The name of the unit test.
default: "${{github.job}}"
path:
description: The path to the upload.
required: true
default: "Torque3D/My Projects/Torque3D/game/test_detail.xml"
runs:
using: "composite"
steps:
- name: Upload Torque Test Report
uses: actions/upload-artifact@v4
with:
name: ${{inputs.name}}
path: ${{inputs.path}}
retention-days: 1
overwrite: true

View file

@ -84,8 +84,9 @@ jobs:
cd "${{github.workspace}}/My Projects/Torque3D/game"
./Torque3D runTests.tscript
- name: Upload Artifact
uses: ./.github/actions/upload-artifact
- name: Test Reporter
uses: phoenix-actions/test-reporting@v14
with:
name: torque3dLinuxGCCUnitTest
path: "${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml"
name: ${{matrix.config.name}}
path: "**/My Projects/Torque3D/game/test_detail.xml"
reporter: java-junit

View file

@ -65,8 +65,9 @@ jobs:
cd "${{github.workspace}}/My Projects/Torque3D/game"
./Torque3D.app/Contents/MacOS/Torque3D runTests.tscript
- name: Upload Artifact
uses: ./.github/actions/upload-artifact
- name: Test Reporter
uses: phoenix-actions/test-reporting@v14
with:
name: torque3dMacOSXCLANGUnitTest
path: "${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml"
name: ${{matrix.config.name}}
path: "**/My Projects/Torque3D/game/test_detail.xml"
reporter: java-junit

View file

@ -61,8 +61,9 @@ jobs:
cd "${{github.workspace}}/My Projects/Torque3D/game"
./Torque3D.exe runTests.tscript
- name: Upload Artifact
uses: ./.github/actions/upload-artifact
- name: Test Reporter
uses: phoenix-actions/test-reporting@v14
with:
name: torque3dWindowsMSVCUnitTest
path: "${{github.workspace}}/My Projects/Torque3D/game/test_detail.xml"
name: ${{matrix.config.name}}
path: "**/My Projects/Torque3D/game/test_detail.xml"
reporter: java-junit

View file

@ -1,39 +0,0 @@
name: Linux 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@v3
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@v14
with:
name: ${{matrix.config.name}}
path: "**/My Projects/Torque3D/game/test_detail.xml"
reporter: java-junit

View file

@ -1,39 +0,0 @@
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-13,
artifact-name: "torque3dMacOSXCLANGUnitTest"
}
steps:
- name: Download Mac Test Report
uses: dawidd6/action-download-artifact@v3
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@v14
with:
name: ${{matrix.config.name}}
path: "**/My Projects/Torque3D/game/test_detail.xml"
reporter: java-junit

View file

@ -1,39 +0,0 @@
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@v3
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@v14
with:
name: ${{matrix.config.name}}
path: "**/My Projects/Torque3D/game/test_detail.xml"
reporter: java-junit