@@ -150,16 +150,26 @@ jobs:
150150 done
151151
152152 echo "✅ All integration tests completed"
153-
153+
154+ - name : Sync BrowserStack logs to workspace
155+ if : always()
156+ run : |
157+ mkdir -p ${{ github.workspace }}/bs-logs
158+ if [ -d ~/.browserstack/NOW/logs ]; then
159+ cp -R ~/.browserstack/NOW/logs/* ${{ github.workspace }}/bs-logs/ || true
160+ else
161+ echo "No logs found in ~/.browserstack/NOW/logs"
162+ fi
154163 - name : Upload BrowserStack Logs as Artifacts
155164 if : always()
156165 uses : actions/upload-artifact@v4
157166 with :
158167 name : browserstack-logs-macos
159168 path : |
160- ${{ github.workspace }}/.browserstack/NOW/ logs/
161- /tmp/run_test_*.log
169+ ${{ github.workspace }}/bs- logs
170+ /tmp/run_test_*.log
162171 retention-days : 30
172+ if-no-files-found : ignore
163173
164174 # test-windows:
165175 # name: Test win/run.ps1 on Windows
@@ -433,13 +443,23 @@ jobs:
433443
434444 echo "✅ All integration tests completed"
435445
446+ - name : Sync BrowserStack logs to workspace
447+ if : always()
448+ run : |
449+ mkdir -p ${{ github.workspace }}/bs-logs
450+ if [ -d ~/.browserstack/NOW/logs ]; then
451+ cp -R ~/.browserstack/NOW/logs/* ${{ github.workspace }}/bs-logs/ || true
452+ else
453+ echo "No logs found in ~/.browserstack/NOW/logs"
454+ fi
455+
436456 - name : Upload BrowserStack Logs as Artifacts
437457 if : always()
438458 uses : actions/upload-artifact@v4
439459 with :
440460 name : browserstack-logs-linux
441461 path : |
442- ${{ github.workspace }}/.browserstack/NOW/ logs/
462+ ${{ github.workspace }}/bs- logs
443463 /tmp/run_test_*.log
444464 retention-days : 30
445465 if-no-files-found : ignore
0 commit comments