From bb21920488a2d2b5b29a0e3ba1947f5e43892879 Mon Sep 17 00:00:00 2001 From: Minimata Date: Sun, 26 Apr 2026 12:24:51 +0200 Subject: [PATCH] changed runsettings and workflow to always publish test reports --- .gitea/workflows/main.yaml | 9 +++++---- .gitignore | 1 + .runsettings | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 46329ef9..0f1f9c10 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -114,7 +114,7 @@ jobs: with: # Version must include major, minor, and patch, and be >= 4.0.0 # Pre-release label is optional. - version: '4.6.1' + version: '4.6.2' # Use .NET-enabled version of Godot (the default is also true). use-dotnet: true # Include the Godot Export Templates (the default is false). @@ -126,20 +126,21 @@ jobs: godot --version - name: 🧑‍🔬 Generate .NET Bindings - run: godot --headless --build-solutions --quit || exit 0 + run: godot --headless --build-solutions --import --quit || exit 0 - name: 🦺 Build Projects - run: dotnet build --configuration Release + run: dotnet build --configuration ExportRelease - name: Run C# Tests env: GODOT_BIN: godot shell: bash run: | - dotnet test --no-build --settings .runsettings --results-directory ./reports --logger "console;verbosity=normal" --logger "trx;LogFileName=results.xml" -- GdUnit4.Parameters="--verbose --headless --import" + dotnet test --no-build --settings .runsettings --results-directory ./reports --logger "console;verbosity=normal" --logger "trx;LogFileName=results.xml" -- GdUnit4.Parameters="--headless --import --quit" - name: Upload test report uses: actions/upload-artifact@v3-node20 + if: always() with: name: Test Report path: ${{ github.workspace }}/reports/test-result.html diff --git a/.gitignore b/.gitignore index d2aa32dd..609e7e2a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ /builds /communication +/reports # Imported translations (automatically generated from CSV files) *.translation diff --git a/.runsettings b/.runsettings index 9fc6baec..b0148e5c 100644 --- a/.runsettings +++ b/.runsettings @@ -4,7 +4,7 @@ 1 ./TestResults net8.0;net9.0 - 180000 + 60000 true