Skip to content

Commit 3601e67

Browse files
committed
add retry command to docker dl
1 parent 7662c51 commit 3601e67

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.github/workflows/cypress-main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,18 @@ jobs:
8484
with:
8585
name: '.wp-env.json'
8686
json: '{"core": "WordPress/WordPress#${{ env.branch }}","plugins":["."],"mappings":{"wp-content/plugins/prismatic": "https://downloads.wordpress.org/plugin/prismatic.zip"}}'
87-
- name: Start server
88-
run: |
89-
npx wp-env start
87+
88+
- name: Start wp-env
89+
uses: nick-fields/retry@v3
90+
with:
91+
timeout_minutes: 4
92+
max_attempts: 3
93+
retry_wait_seconds: 60
94+
shell: bash
95+
command: |
96+
npx wp-env start --update
9097
echo "WordPress version: `npx wp-env run cli core version`"
98+
9199
- name: Cypress run
92100
uses: cypress-io/github-action@v6
93101
with:

.github/workflows/cypress-push.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,18 @@ jobs:
6060
run: |
6161
npx eslint --max-warnings 0 .
6262
npm run build
63-
- name: Start server
64-
run: |
65-
npx wp-env start
63+
64+
- name: Start wp-env
65+
uses: nick-fields/retry@v3
66+
with:
67+
timeout_minutes: 4
68+
max_attempts: 3
69+
retry_wait_seconds: 60
70+
shell: bash
71+
command: |
72+
npx wp-env start --update
6673
echo "WordPress version: `npx wp-env run cli core version`"
74+
6775
- name: Cypress run
6876
uses: cypress-io/github-action@v6
6977
with:

0 commit comments

Comments
 (0)