This commit is contained in:
parent
7d9b688ad3
commit
1d2f2a893e
2 changed files with 3 additions and 8 deletions
|
|
@ -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/')
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue