chore: fix test execution
Some checks failed
CI / build (push) Failing after 3m29s

This commit is contained in:
Louis Seubert 2026-10-22 22:56:46 +02:00
commit 1d2f2a893e
2 changed files with 3 additions and 8 deletions

View file

@ -46,8 +46,8 @@ jobs:
*.nupkg
*.snupkg
- name: test SDK packages
run: dotnet test src/sdk.tests/Geekeey.Arcade.NET.Tests.csproj --no-build --no-restore
- name: dotnet test
run: dotnet test src/sdk.tests/Geekeey.Arcade.NET.Tests.csproj
- name: publish to nuget
if: startsWith(forgejo.ref, 'refs/tags/')

View file

@ -152,12 +152,7 @@ public sealed class SdkPackageIntegrationTests
var output = await process.StandardOutput.ReadToEndAsync();
var error = await process.StandardError.ReadToEndAsync();
await process.WaitForExitAsync();
if (process.ExitCode is not 0)
{
throw new InvalidOperationException($"dotnet {arguments} failed with exit code {process.ExitCode}.\n{output}\n{error}");
}
return output;
return process.ExitCode is 0 ? output : throw new InvalidOperationException($"dotnet {arguments} failed with exit code {process.ExitCode}.\n{output}\n{error}");
}
public void Dispose()