Skip to content

Commit

Permalink
Use two workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeVR committed Jan 4, 2024
1 parent c2c8c6f commit 5c21ad0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ on:

workflow_dispatch:

permissions:
contents: read
actions: read
checks: write

concurrency:
group: unit-test${{ github.event.number }}
cancel-in-progress: true


jobs:
unit-test:
strategy:
Expand Down Expand Up @@ -100,20 +94,11 @@ jobs:
chmod +x ./addons/gdUnit4/runtest.sh
xvfb-run --auto-servernum ./addons/gdUnit4/runtest.sh --add "res://addons/dialogic/Tests/" --audio-driver Dummy --display-driver x11 --rendering-driver opengl3 --screen 0 --continue
- name: "Publish Test Report"
if: ${{ always() }}
uses: dorny/[email protected]
with:
name: "test_report_${{ matrix.godot-version }}"
path: "reports/**/results.xml"
reporter: java-junit
fail-on-error: 'false'

- name: "Upload Unit Test Reports"
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: "test_report_${{ matrix.godot-version }}"
name: "godot-version"
path: |
reports/**
/var/lib/systemd/coredump/**
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/unit_test_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'publish-test'
on:
workflow_run:
workflows: ['unit-test']
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
report:
runs-on: ubuntu-latest
steps:

- name: "Publish Test Report"
if: ${{ always() }}
uses: dorny/[email protected]
with:
name: "test_report"
path: "reports/**/results.xml"
reporter: java-junit

0 comments on commit 5c21ad0

Please sign in to comment.