diff --git a/.github/actions/setup-e2e-env/action.yml b/.github/actions/setup-e2e-env/action.yml index 610bbe3a..8d9c6efb 100644 --- a/.github/actions/setup-e2e-env/action.yml +++ b/.github/actions/setup-e2e-env/action.yml @@ -90,7 +90,7 @@ runs: shell: bash ## Android Setup (early for fail-fast) ## - + # Set Android environment variables (self-hosted runner has SDK pre-installed) - name: Set Android environment variables if: ${{ inputs.platform == 'android' }} @@ -165,7 +165,7 @@ runs: shell: bash ## iOS Platform Setup ## - + - name: Configure iOS Signing Certificates if: ${{ inputs.platform == 'ios' && inputs.configure-keystores == 'true' }} uses: MetaMask/github-tools/.github/actions/configure-keystore@self-hosted-runners-config @@ -198,17 +198,25 @@ runs: restore-keys: | ${{ inputs.cache-prefix }}-yarn-${{ inputs.platform }}-${{ runner.os }}- - - name: Install JavaScript dependencies + - name: Install JavaScript dependencies with retry id: yarn-install - run: yarn install --frozen-lockfile - shell: bash + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2 + with: + timeout_minutes: 15 + max_attempts: 3 + retry_wait_seconds: 30 + command: yarn install --frozen-lockfile env: NODE_OPTIONS: --max-old-space-size=4096 # Increase memory limit for Node.js due to large dependencies - - name: Install Detox CLI + - name: Install Detox CLI with retry id: install-detox-cli - run: yarn global add detox-cli - shell: bash + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2 + with: + timeout_minutes: 15 + max_attempts: 3 + retry_wait_seconds: 30 + command: yarn global add detox-cli - name: Install Foundry shell: bash