File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
tools/test-local-installation Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 21
21
name : Test
22
22
timeout-minutes : 120
23
23
runs-on : ${{ matrix.runs-on }}
24
+ env :
25
+ PW_MAX_RETRIES : 3
24
26
strategy :
25
27
fail-fast : false
26
28
matrix :
34
36
bash utils/docker/build.sh --$ARCH ${{ matrix.flavor }} playwright-java:localbuild-${{ matrix.flavor }}
35
37
- name : Start container
36
38
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)
38
40
echo "CONTAINER_ID=$CONTAINER_ID" >> $GITHUB_ENV
39
41
40
42
- name : Run test in container
Original file line number Diff line number Diff line change 64
64
<plugin >
65
65
<groupId >org.apache.maven.plugins</groupId >
66
66
<artifactId >maven-surefire-plugin</artifactId >
67
- <version >3.2.5</version >
67
+ <version >3.5.3</version >
68
+ <configuration >
69
+ <failIfNoSpecifiedTests >false</failIfNoSpecifiedTests >
70
+ <failIfNoTests >false</failIfNoTests >
71
+ <rerunFailingTestsCount >${env.PW_MAX_RETRIES} </rerunFailingTestsCount >
72
+ <!-- Activate the use of TCP to transmit events to the plugin and avoid
73
+ [WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM -->
74
+ <forkNode implementation =" org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
75
+ </configuration >
68
76
</plugin >
69
77
</plugins >
70
78
</build >
You can’t perform that action at this time.
0 commit comments