Skip to content

Commit f5e32f9

Browse files
committed
Start Docker for Windows tests
1 parent 5846d9e commit f5e32f9

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,23 @@ jobs:
254254
run: |
255255
cp ./vuforia_secrets.env.example ./vuforia_secrets.env
256256
257+
- name: Start Docker
258+
shell: pwsh
259+
run: |
260+
$service = Get-Service docker -ErrorAction Stop
261+
if ($service.Status -ne "Running") {
262+
Start-Service docker
263+
}
264+
$deadline = (Get-Date).AddMinutes(2)
265+
do {
266+
docker info
267+
if ($LASTEXITCODE -eq 0) {
268+
exit 0
269+
}
270+
Start-Sleep -Seconds 5
271+
} while ((Get-Date) -lt $deadline)
272+
docker info
273+
257274
- name: Run tests
258275
shell: bash
259276
run: |

0 commit comments

Comments
 (0)