diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 893585647..67709be46 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -73,9 +73,11 @@ jobs: .\Development\Scripts\Windows\CallBuildTool.bat -build -log -dotnet=8 -arch=x64 -platform=Windows -configuration=Development -buildtargets=FlaxTestsTarget dotnet msbuild Source\Tools\Flax.Build.Tests\Flax.Build.Tests.csproj /m /t:Restore,Build /p:Configuration=Debug /p:Platform=AnyCPU /nologo - name: Test + shell: pwsh run: | + $ErrorActionPreference = "Stop" .\Binaries\Editor\Win64\Development\FlaxTests.exe - if not %errorlevel% == 0 exit %errorlevel% + if(!$?) { Exit LastExitCode } dotnet test -f net8.0 Binaries\Tests\Flax.Build.Tests.dll xcopy /y Binaries\Editor\Win64\Development\FlaxEngine.CSharp.dll Binaries\Tests xcopy /y Binaries\Editor\Win64\Development\FlaxEngine.CSharp.runtimeconfig.json Binaries\Tests