Skip to content

Commit 90835cf

Browse files
ensure failed exit codes are returned to ci.yml (#609)
1 parent 6fc0f9a commit 90835cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ $ErrorActionPreference = "Stop"
33
$dotnet = & "$PSScriptRoot/build/resolve-dotnet.ps1"
44

55
& $dotnet test "$PSScriptRoot\tests\Tests.AzureAppConfiguration\Tests.AzureAppConfiguration.csproj" --logger trx
6+
7+
if ($LASTEXITCODE -ne 0) {
8+
exit $LASTEXITCODE
9+
}
10+
611
& $dotnet test "$PSScriptRoot\tests\Tests.AzureAppConfiguration.AspNetCore\Tests.AzureAppConfiguration.AspNetCore.csproj" --logger trx
12+
13+
if ($LASTEXITCODE -ne 0) {
14+
exit $LASTEXITCODE
15+
}
16+
717
& $dotnet test "$PSScriptRoot\tests\Tests.AzureAppConfiguration.Functions.Worker\Tests.AzureAppConfiguration.Functions.Worker.csproj" --logger trx
818

919
exit $LASTEXITCODE

0 commit comments

Comments
 (0)