From 5227fedf1528ce20e6a76b5441a16318f921b813 Mon Sep 17 00:00:00 2001 From: Minimata Date: Sun, 22 Feb 2026 17:13:51 +0100 Subject: [PATCH] trying to fix CI --- .gitea/workflows/main.yaml | 44 ++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 21bb0b8a..7a8593c2 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -9,6 +9,7 @@ on: env: GODOT_VERSION: 4.6 + DOTNET_VERSION: 'net9.0' GAME_NAME: MovementTests ITCHIO_USERNAME: Minimata ITCHIO_GAMEID: MovementTests @@ -45,20 +46,35 @@ jobs: steps: - name: Checkout with LFS uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main - - - name: Run tests - uses: godot-gdunit-labs/gdUnit4-action@v1 + + - name: Setup Godot + id: setup-godot + uses: https://git.game-dev.space/minimata/setup-godot.git@main with: godot-version: ${GODOT_VERSION} - godot-net: true - godot-force-mono: true - dotnet-version: 'net9.0' - paths: | - res://tests/ - publish-report: false - upload-report: false - console-verbosity: 'normal' - arguments: "--verbose --headless --import" + dotnet-version: ${DOTNET_VERSION} + + - name: Run C# Tests + env: + GODOT_BIN: ${{ steps.setup-godot.outputs.godot_bin }} + 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" + + + # - name: Run tests +# uses: godot-gdunit-labs/gdUnit4-action@v1 +# with: +# godot-version: ${GODOT_VERSION} +# godot-net: true +# godot-force-mono: true +# dotnet-version: ${DOTNET_VERSION} +# paths: | +# res://tests/ +# publish-report: false +# upload-report: false +# console-verbosity: 'normal' +# arguments: "--verbose --headless --import" - name: Upload test report uses: actions/upload-artifact@v3-node20 @@ -79,8 +95,8 @@ jobs: id: setup-godot uses: https://git.game-dev.space/minimata/setup-godot.git@main with: - godot-version: '4.6' - dotnet-version: 'net9.0' + godot-version: ${GODOT_VERSION} + dotnet-version: ${DOTNET_VERSION} - name: Remove GDUnit addon run: |