Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
chottuthejimmy committed Feb 14, 2025
1 parent 5385ca1 commit 4574694
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,14 @@ jobs:
prompt: |
1. /run testdriver/test.yml
prerun: |
echo "installing dependencies"
npm install
echo "installing dashcam-chrome"
npm install dashcam-chrome
Start-Job -ScriptBlock {
echo "starting npm server"
npm start
}
# echo "waiting for port to be live"
# $portLive = $false
# $targetUrl = "${{ env.LOCALHOST }}"
# Write-Output "Beginning port checks for $targetUrl"
# while (-not $portLive) {
# $response = Invoke-WebRequest -Uri $targetUrl -Method Head -UseBasicParsing -TimeoutSec 2 -ErrorAction Stop
# if ($response.StatusCode -eq 200 -or $response.StatusCode -eq 404) {
# $portLive = $true
# Write-Output "Port is live (HTTP 200)"
# } else {
# Write-Output "Port is not live (HTTP $($response.StatusCode))"
# Start-Sleep -Seconds 1
# }
# }
Start-Sleep -Minutes 2
Write-Output "Starting Chrome"
Expand Down

0 comments on commit 4574694

Please sign in to comment.