diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_test.yml similarity index 89% rename from .github/workflows/unit_tests.yml rename to .github/workflows/unit_test.yml index 6632f46c7..afec49b0b 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_test.yml @@ -9,18 +9,13 @@ on: - '**.md' pull_request: - paths-ignore: - - '**.yml' - - '**.md' workflow_dispatch: - concurrency: group: unit-test${{ github.event.number }} cancel-in-progress: true - jobs: unit-test: strategy: @@ -96,25 +91,15 @@ 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/test-reporter@v1.6.0 - 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/** /var/log/syslog - fail-on-error: 'false' finalize: if: ${{ !cancelled() }} diff --git a/.github/workflows/unit_test_report.yml b/.github/workflows/unit_test_report.yml new file mode 100644 index 000000000..b3844f2a4 --- /dev/null +++ b/.github/workflows/unit_test_report.yml @@ -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/test-reporter@v1.6.0 + with: + name: "test_report" + path: "reports/**/results.xml" + reporter: java-junit \ No newline at end of file diff --git a/addons/dialogic/Tests/Unit/test_example.gd b/addons/dialogic/Tests/Unit/test_example.gd index 1daa22953..9f51c8753 100644 --- a/addons/dialogic/Tests/Unit/test_example.gd +++ b/addons/dialogic/Tests/Unit/test_example.gd @@ -2,7 +2,7 @@ class_name GdUnitExampleTest extends GdUnitTestSuite func test_example() -> void: - const EXAMPLE_STRING := "Dialogic!" + const EXAMPLE_STRING := "Dialogic Test!" assert_str(EXAMPLE_STRING)\ .has_length(EXAMPLE_STRING.length())\