File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
.github/actions/windows-run_examples Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1919 $errchk = (Get-ChildItem -Path ./| Where-Object { $_.Name -like "*_example.exe"} | Measure-Object).Count
2020 if( $errchk -gt 0){
2121 Write-Output "Running windows Examples."
22- Get-ChildItem -Path ./| Where-Object { $_.Name -like "*_example.exe"} | Foreach { Write "Running $_"; if( $(Start-Process $_.FullName -Passthru -Wait).ExitCode -ne 0){Write "Programm terminated with error, abort."; Exit 1}}
23- } else {
24- Write-Output "No Examples found, abort."
22+ Get-ChildItem -Path ./| Where-Object { $_.Name -like "*_example.exe" } | ForEach-Object {
23+ Write-Output "Running $($_.Name)"
24+ & $_.FullName
25+ if ($LASTEXITCODE -ne 0) {
26+ Write-Error "Programm terminated with error, abort."
27+ Exit 1
28+ }
29+ }
30+ }
31+ else {
32+ Write-Output "No Examples found, abort."
2533 Exit 1
2634 }
You can’t perform that action at this time.
0 commit comments