@@ -290,56 +290,56 @@ jobs:
290290 )
291291
292292 $overallFailed = $false
293- $logRoot = Join-Path $env:TEMP "now-tests"
294- New-Item -ItemType Directory -Force -Path $logRoot | Out-Null
295- $logPath = Join-Path $logRoot "run_test_app_nodejs.log"
296-
297- Write-Host "================================"
298- Write-Host "Testing: $scriptPath --silent app nodejs"
299- Write-Host "================================"
300-
301- & $scriptPath --silent app nodejs 2>&1 | Tee-Object -FilePath $logPath -Append
302- $exitCode = $LASTEXITCODE
303-
304- if ($exitCode -eq 0) {
305- Write-Host "✅ app / nodejs completed (exit code: $exitCode)"
306- } else {
307- Write-Host "⚠️ app / nodejs exited with code: $exitCode"
308- if (Test-Path $logPath) {
309- Write-Host "Log output (last 20 lines):"
310- Get-Content -Path $logPath -Tail 20
311- }
312- exit 1
313- }
314-
315293 # $logRoot = Join-Path $env:TEMP "now-tests"
316294 # New-Item -ItemType Directory -Force -Path $logRoot | Out-Null
295+ # $logPath = Join-Path $logRoot "run_test_app_nodejs.log"
296+
297+ # Write-Host "================================"
298+ # Write-Host "Testing: $scriptPath --silent app nodejs"
299+ # Write-Host "================================"
300+
301+ # & $scriptPath --silent app nodejs 2>&1 | Tee-Object -FilePath $logPath -Append
302+ # $exitCode = $LASTEXITCODE
303+
304+ # if ($exitCode -eq 0) {
305+ # Write-Host "✅ app / nodejs completed (exit code: $exitCode)"
306+ # } else {
307+ # Write-Host "⚠️ app / nodejs exited with code: $exitCode"
308+ # if (Test-Path $logPath) {
309+ # Write-Host "Log output (last 20 lines):"
310+ # Get-Content -Path $logPath -Tail 20
311+ # }
312+ # exit 1
313+ # }
317314
318- # foreach ($config in $testConfigs) {
319- # $testType = $config[0]
320- # $techStack = $config[1]
315+ $logRoot = Join-Path $env:TEMP "now-tests"
316+ New-Item -ItemType Directory -Force -Path $logRoot | Out-Null
321317
322- # Write-Host "================================"
323- # Write-Host "Testing: $scriptPath --silent $testType $techStack"
324- # Write-Host "================================"
318+ foreach ($config in $testConfigs) {
319+ $testType = $config[0]
320+ $techStack = $config[1]
325321
326- # $logPath = Join-Path $logRoot "run_test_${testType}_${techStack}.log"
322+ Write-Host "================================"
323+ Write-Host "Testing: $scriptPath --silent $testType $techStack"
324+ Write-Host "================================"
327325
328- # & $scriptPath --silent $testType $techStack 2>&1 | Tee-Object -FilePath $logPath -Append
329- # $exitCode = $LASTEXITCODE
326+ $logPath = Join-Path $logRoot "run_test_${testType}_${techStack}.log"
330327
331- # if ($exitCode -eq 0) {
332- # Write-Host "✅ $testType / $techStack completed (exit code: $exitCode)"
333- # } else {
334- # Write-Host "⚠️ $testType / $techStack exited with code: $exitCode"
335- # $overallFailed = $true
328+ & $scriptPath --silent $testType $techStack 2>&1 | Tee-Object -FilePath $logPath -Append
329+ $exitCode = $LASTEXITCODE
336330
337- # if (Test-Path $logPath) {
338- # Write-Host "Log output (last 20 lines):"
339- # Get-Content -Path $logPath -Tail 20
340- # }
341- # }
342- # }
331+ if ($exitCode -eq 0) {
332+ Write-Host "✅ $testType / $techStack completed (exit code: $exitCode)"
333+ } else {
334+ Write-Host "⚠️ $testType / $techStack exited with code: $exitCode"
335+ $overallFailed = $true
336+
337+ if (Test-Path $logPath) {
338+ Write-Host "Log output (last 20 lines):"
339+ Get-Content -Path $logPath -Tail 20
340+ }
341+ }
342+ }
343343
344344 if ($overallFailed) {
345345 Write-Error "One or more configurations failed."
0 commit comments