We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8d338 commit 035a555Copy full SHA for 035a555
benchmark.ps1
@@ -91,3 +91,8 @@ if (-Not [string]::IsNullOrEmpty(${env:GITHUB_SHA})) {
91
}
92
93
& $dotnet run --project $benchmarks --configuration "Release" -- $additionalArgs
94
+
95
+if ($LASTEXITCODE -ne 0) {
96
+ Write-Error "Benchmarks failed with exit code $LASTEXITCODE."
97
+ exit $LASTEXITCODE
98
+}
perf/TodoApp.Benchmarks/Program.cs
@@ -19,8 +19,11 @@
19
{
20
await benchmarks.StopServer();
21
22
23
+ return 0;
24
25
else
26
- BenchmarkRunner.Run<OpenApiBenchmarks>(args: args);
27
+ var summary = BenchmarkRunner.Run<OpenApiBenchmarks>(args: args);
28
+ return summary.Reports.Any((p) => !p.Success) ? 1 : 0;
29
0 commit comments