You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/app-test.ps1
+36-24Lines changed: 36 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -406,19 +406,23 @@ function Start-DotNetTool {
406
406
$output=Get-Content$stdOutFile
407
407
$errorOutput=Get-Content$stdErrFile
408
408
409
-
# Check the exit code
410
-
if ($process.ExitCode-eq0)
411
-
{
412
-
Write-Output"Command completed successfully."
413
-
Write-Output$output
414
-
return$true
415
-
}
416
-
else
417
-
{
418
-
Write-Error"Command failed with exit code: $($process.ExitCode)"
419
-
Write-Error$errorOutput
420
-
return$false
421
-
}
409
+
Write-Output"Command completed successfully."
410
+
Write-Output$output
411
+
412
+
###### TODO ##### When running with github action runner, each error cause stop of the action so the error output needs to be forwarded to some logfile in the future
413
+
## Check the exit code
414
+
#if ($process.ExitCode -eq 0)
415
+
#{
416
+
# Write-Output "Command completed successfully."
417
+
# Write-Output $output
418
+
# return $true
419
+
#}
420
+
#else
421
+
#{
422
+
# Write-Error "Command failed with exit code: $($process.ExitCode)"
@@ -478,10 +482,11 @@ function Start-DotNetProject {
478
482
}
479
483
else
480
484
{
481
-
Write-Error"Project failed to start. Check for errors."
485
+
###### TODO ##### When running with github action runner, each error cause stop of the action so the error output needs to be forwarded to some logfile in the
486
+
#Write-Error "Project failed to start. Check for errors."
482
487
# Read output and error streams
483
-
$errorOutput=Get-Content$stdErrFile
484
-
Write-Output$errorOutput
488
+
#$errorOutput = Get-Content $stdErrFile
489
+
#Write-Output $errorOutput
485
490
Stop-Process-Id $process.Id-Force #???
486
491
return$false
487
492
}
@@ -495,7 +500,7 @@ function Start-DotNetProject {
Write-Output"Command 'apax install' finished succesfully in $appFolder"
542
547
}
543
-
else
544
-
{
545
-
$result.error|foreach-object { write-output$_ }
546
-
}
548
+
###### TODO ##### When running with github action runner, each error cause stop of the action so the error output needs to be forwarded to some logfile in the future
###### TODO ##### When running with github action runner, each error cause stop of the action so the error output needs to be forwarded to some logfile in the future
###### TODO ##### When running with github action runner, each error cause stop of the action so the error output needs to be forwarded to some logfile in the future
###### TODO ##### When running with github action runner, each error cause stop of the action so the error output needs to be forwarded to some logfile in the future
0 commit comments