@@ -306,14 +306,14 @@ jobs:
306306 - name : Sync BrowserStack logs to workspace (Windows)
307307 if : always()
308308 run : |
309- $dest = "${ env:GITHUB_WORKSPACE}\ bs-logs"
309+ $dest = Join-Path $ env:GITHUB_WORKSPACE " bs-logs"
310310 New-Item -ItemType Directory -Force -Path $dest | Out-Null
311311
312- $logPath = " $env:USERPROFILE\ .browserstack\NOW\logs"
312+ $logPath = Join-Path $env:USERPROFILE " .browserstack\NOW\logs"
313313
314314 if (Test-Path $logPath) {
315315 Write-Host "Copying logs from $logPath"
316- Copy-Item -Path " $logPath\*" -Destination $dest -Recurse -Force -ErrorAction SilentlyContinue
316+ Copy-Item -Path (Join-Path $logPath "*") -Destination $dest -Recurse -Force -ErrorAction SilentlyContinue
317317 }
318318 else {
319319 Write-Host "No logs found at $logPath"
@@ -326,7 +326,7 @@ jobs:
326326 name : browserstack-logs-windows
327327 path : |
328328 ${{ github.workspace }}/bs-logs
329- C:\Temp \run_test_*.log
329+ ${{ env.USERPROFILE }} \run_test_*.log
330330 retention-days : 30
331331 if-no-files-found : ignore
332332
@@ -483,16 +483,17 @@ jobs:
483483 test-summary :
484484 name : Test Summary
485485 runs-on : ubuntu-latest
486- needs : [test-mac, test-linux]
486+ needs : [test-mac, test-linux, test-windows ]
487487 if : always()
488488 steps :
489489 - name : Check test results
490490 run : |
491491 echo "=== Test Results Summary ==="
492492 echo "macOS Tests: ${{ needs.test-mac.result }}"
493493 echo "Linux Tests: ${{ needs.test-linux.result }}"
494+ echo "Windows Tests: ${{ needs.test-windows.result }}"
494495
495- if [ "${{ needs.test-mac.result }}" = "failure" ] || [ "${{ needs.test-linux.result }}" = "failure" ]; then
496+ if [ "${{ needs.test-mac.result }}" = "failure" ] || [ "${{ needs.test-linux.result }}" = "failure" ] [ "${{ needs.test-windows.result }}" = "failure" ] ; then
496497 echo "❌ Some tests failed"
497498 exit 1
498499 fi
@@ -503,4 +504,4 @@ jobs:
503504 run : |
504505 echo "✅ All script validations passed successfully!"
505506 echo "- mac/run.sh and supporting scripts validated on macOS and Linux"
506- echo "- win/run.ps1 and supporting scripts validated on Windows (temporarily disabled) "
507+ echo "- win/run.ps1 and supporting scripts validated on Windows"
0 commit comments