From 1d2f2a893ef1ee6180ad4e987c4719427276151a Mon Sep 17 00:00:00 2001 From: Louis Seubert Date: Thu, 22 Oct 2026 22:56:46 +0200 Subject: [PATCH] chore: fix test execution --- .forgejo/workflows/ci.yml | 4 ++-- src/sdk.tests/SdkPackageIntegrationTests.cs | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 7e07a1f..056ec35 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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/') diff --git a/src/sdk.tests/SdkPackageIntegrationTests.cs b/src/sdk.tests/SdkPackageIntegrationTests.cs index 8bcfd49..1832e08 100644 --- a/src/sdk.tests/SdkPackageIntegrationTests.cs +++ b/src/sdk.tests/SdkPackageIntegrationTests.cs @@ -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()