Skip to content

Commit 5be3a5f

Browse files
committed
feat: Added retry to e2e tests (#85)
1 parent 5fc046d commit 5be3a5f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy-and-e2e.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ jobs:
231231
max_attempts: 3
232232
command: npx playwright install --with-deps
233233
- name: Run Playwright Tests
234-
run: |
235-
curl -s -o $NODE_EXTRA_CA_CERTS https://letsencrypt.org/certs/staging/letsencrypt-stg-root-x1.pem
236-
curl -s -o playwright.config.ts https://raw.githubusercontent.com/opencrvs/e2e/refs/heads/k8s-integration/playwright.config.ts
237-
npx playwright test ./e2e/testcases/${{ matrix.test_file }}
234+
uses: nick-fields/retry@v3
235+
with:
236+
timeout_minutes: 10
237+
max_attempts: 2
238+
command: npx playwright test ./e2e/testcases/${{ matrix.test_file }}
238239
env:
239240
DOMAIN: '${{ needs.debug.outputs.domain }}'
240241
# Allow e2e playwright API call for Lets encrypt staging SSL Certificate

0 commit comments

Comments
 (0)