Skip to content

Commit 659e09b

Browse files
committed
devops: enable retries in Docker tests
1 parent f4c7b97 commit 659e09b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test_docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
name: Test
2222
timeout-minutes: 120
2323
runs-on: ${{ matrix.runs-on }}
24+
env:
25+
PW_MAX_RETRIES: 3
2426
strategy:
2527
fail-fast: false
2628
matrix:
@@ -34,7 +36,7 @@ jobs:
3436
bash utils/docker/build.sh --$ARCH ${{ matrix.flavor }} playwright-java:localbuild-${{ matrix.flavor }}
3537
- name: Start container
3638
run: |
37-
CONTAINER_ID=$(docker run --rm -e CI --ipc=host -v "$(pwd)":/root/playwright --name playwright-docker-test -d -t playwright-java:localbuild-${{ matrix.flavor }} /bin/bash)
39+
CONTAINER_ID=$(docker run --rm -e CI -e PW_MAX_RETRIES --ipc=host -v "$(pwd)":/root/playwright --name playwright-docker-test -d -t playwright-java:localbuild-${{ matrix.flavor }} /bin/bash)
3840
echo "CONTAINER_ID=$CONTAINER_ID" >> $GITHUB_ENV
3941
4042
- name: Run test in container

0 commit comments

Comments
 (0)