diff --git a/.github/actions/setup-e2e-env/action.yml b/.github/actions/setup-e2e-env/action.yml index 610bbe3a..e8c7ae14 100644 --- a/.github/actions/setup-e2e-env/action.yml +++ b/.github/actions/setup-e2e-env/action.yml @@ -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: 10 + 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: 10 + max_attempts: 3 + retry_wait_seconds: 30 + command: yarn global add detox-cli - name: Install Foundry shell: bash