assign results to a var

This commit is contained in:
Mikhail Koliada
2022-01-24 19:38:52 +03:00
committed by Mikhail Koliada
parent 811f1bc41a
commit 135879dbe3

View File

@ -152,7 +152,7 @@ jobs:
Version="${{ env.VERSION }}";
Platform="${{ matrix.platform }}";
}
Invoke-Pester -Container $pesterContainer -PassThru
$Result = Invoke-Pester -Container $pesterContainer -PassThru
if ($Result.FailedCount -gt 0) {
$host.SetShouldExit($Result.FailedCount)
exit $Result.FailedCount