Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
🩹 [Patch]: Fix conditional logic for test result handling
  • Loading branch information
MariusStorhaug committed Jan 30, 2025
commit fef6a53eb37d4230353116780847e70ffdc2d265
3 changes: 1 addition & 2 deletions scripts/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ if (($failedTests -gt 0) -or ($testResults.Result -ne 'Passed')) {
Write-GitHubError "❌ Some [$failedTests] tests failed."
Set-GitHubOutput -Name 'passed' -Value $false
$return = 1
}
if ($failedTests -eq 0) {
} elseif ($failedTests -eq 0) {
Write-GitHubNotice '✅ All tests passed.'
Set-GitHubOutput -Name 'passed' -Value $true
$return = 0
Expand Down