8000 devops: retry failures up to 3 times on GHA (#1758) · microsoft/playwright-java@84eaf8f · GitHub
[go: up one dir, main page]

Skip to content

Commit 84eaf8f

Browse files
authored
devops: retry failures up to 3 times on GHA (#1758)
1 parent c090824 commit 84eaf8f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- main
1010
- release-*
11+
env:
12+
PW_MAX_RETRIES: 3
1113
jobs:
1214
dev:
1315
timeout-minutes: 30

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
</configurationParameters>
160160
</properties>
161161
<failIfNoTests>false</failIfNoTests>
162+
<rerunFailingTestsCount>${env.PW_MAX_RETRIES}</rerunFailingTestsCount>
162163
<!-- Activate the use of TCP to transmit events to the plugin and avoid
163164
[WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM -->
164165
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>

0 commit comments

Comments
 (0)
0