This commit is contained in:
parent
7d9b688ad3
commit
1d2f2a893e
2 changed files with 3 additions and 8 deletions
|
|
@ -46,8 +46,8 @@ jobs:
|
||||||
*.nupkg
|
*.nupkg
|
||||||
*.snupkg
|
*.snupkg
|
||||||
|
|
||||||
- name: test SDK packages
|
- name: dotnet test
|
||||||
run: dotnet test src/sdk.tests/Geekeey.Arcade.NET.Tests.csproj --no-build --no-restore
|
run: dotnet test src/sdk.tests/Geekeey.Arcade.NET.Tests.csproj
|
||||||
|
|
||||||
- name: publish to nuget
|
- name: publish to nuget
|
||||||
if: startsWith(forgejo.ref, 'refs/tags/')
|
if: startsWith(forgejo.ref, 'refs/tags/')
|
||||||
|
|
|
||||||
|
|
@ -152,12 +152,7 @@ public sealed class SdkPackageIntegrationTests
|
||||||
var output = await process.StandardOutput.ReadToEndAsync();
|
var output = await process.StandardOutput.ReadToEndAsync();
|
||||||
var error = await process.StandardError.ReadToEndAsync();
|
var error = await process.StandardError.ReadToEndAsync();
|
||||||
await process.WaitForExitAsync();
|
await process.WaitForExitAsync();
|
||||||
if (process.ExitCode is not 0)
|
return process.ExitCode is 0 ? output : throw new InvalidOperationException($"dotnet {arguments} failed with exit code {process.ExitCode}.\n{output}\n{error}");
|
||||||
{
|
|
||||||
throw new InvalidOperationException($"dotnet {arguments} failed with exit code {process.ExitCode}.\n{output}\n{error}");
|
|
||||||
}
|
|
||||||
|
|
||||||
return output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue