diff --git a/.github/workflows/cypress-matrix.yml b/.github/workflows/cypress-matrix.yml index 8f8c3d62..eb9c386c 100644 --- a/.github/workflows/cypress-matrix.yml +++ b/.github/workflows/cypress-matrix.yml @@ -110,7 +110,11 @@ jobs: echo '{"wpVersion": "${{ matrix.wpVersion }}","phpVersion": "${{ matrix.phpVersion }}"}' > cypress.env.json - name: Install WordPress - run: npx wp-env start --debug + uses: nick-fields/retry@v3 + with: + timeout_minutes: 4 + max_attempts: 3 + command: npx wp-env start --debug - name: Run Cypress Tests if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || github.actor == 'dependabot[bot]' }} diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index ea117088..d5c5e190 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -109,7 +109,11 @@ jobs: run: echo '{"config":{"WP_DEBUG_DISPLAY":false},"plugins":["${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}"]}' > .wp-env.override.json - name: Install WordPress - run: npx wp-env start --debug + uses: nick-fields/retry@v3 + with: + timeout_minutes: 4 + max_attempts: 3 + command: npx wp-env start --debug - name: Run Cypress Tests if: ${{ github.repository != 'newfold-labs/wp-plugin-hostgator' || github.actor == 'dependabot[bot]' }}