Skip to content

Commit 146f889

Browse files
ci(varnish): Retry on failure for disabling module steps
[skip ci]
1 parent 80ef790 commit 146f889

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

.github/workflows/installation-and-varnish-test-suite.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,31 @@ jobs:
8080
8181
- name: Disable some extensions
8282
if: contains(fromJson('["2.4.6","2.4.7","2.4.8"]'),matrix.m2-version)
83-
run: |
84-
ddev magento maintenance:enable
85-
ddev magento module:disable --clear-static-content Magento_AdminAdobeImsTwoFactorAuth
86-
ddev magento setup:static-content:deploy -f
87-
ddev magento maintenance:disable
83+
uses: nick-fields/retry@v3
84+
with:
85+
timeout_minutes: 5
86+
max_attempts: 3
87+
shell: bash
88+
command: |
89+
ddev magento maintenance:enable
90+
ddev magento module:disable --clear-static-content Magento_AdminAdobeImsTwoFactorAuth
91+
ddev magento setup:static-content:deploy -f
92+
ddev magento maintenance:disable
8893
8994
- name: Disable some extensions for 2.4
9095
if: startsWith(matrix.m2-version, '2.4')
91-
run: |
92-
ddev magento maintenance:enable
93-
ddev magento module:disable --clear-static-content Magento_TwoFactorAuth
94-
ddev magento cache:clean
95-
ddev magento cache:flush
96-
ddev magento setup:static-content:deploy -f
97-
ddev magento maintenance:disable
96+
uses: nick-fields/retry@v3
97+
with:
98+
timeout_minutes: 5
99+
max_attempts: 3
100+
shell: bash
101+
command: |
102+
ddev magento maintenance:enable
103+
ddev magento module:disable --clear-static-content Magento_TwoFactorAuth
104+
ddev magento cache:clean
105+
ddev magento cache:flush
106+
ddev magento setup:static-content:deploy -f
107+
ddev magento maintenance:disable
98108
99109
- name: Varnish MISS and HIT test
100110
run: |

0 commit comments

Comments
 (0)