Wrap yarn install with retry for Testdriver and Build Helper (#1494)

Yarn Install (specifically the `sharp` builds) are flaky on Windows. I'm
adding a retry around this step to prevent unnecessary failures
This commit is contained in:
Evan Simkowitz 2024-12-11 11:33:41 -08:00 committed by GitHub
parent 58fbbd78f6
commit 7df441a389
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 6 deletions

View File

@ -63,9 +63,14 @@ jobs:
with: with:
node-version: ${{env.NODE_VERSION}} node-version: ${{env.NODE_VERSION}}
- name: Install Yarn - name: Install Yarn
run: | uses: nick-fields/retry@v3
with:
command: |
corepack enable corepack enable
yarn install yarn install
timeout_minutes: 5
retry_on: error
max_attempts: 3
- name: Install Task - name: Install Task
uses: arduino/setup-task@v2 uses: arduino/setup-task@v2
with: with:

View File

@ -47,9 +47,14 @@ jobs:
with: with:
node-version: ${{env.NODE_VERSION}} node-version: ${{env.NODE_VERSION}}
- name: Install Yarn - name: Install Yarn
run: | uses: nick-fields/retry@v3
with:
command: |
corepack enable corepack enable
yarn install yarn install
timeout_minutes: 5
retry_on: error
max_attempts: 3
- name: Install Task - name: Install Task
uses: arduino/setup-task@v2 uses: arduino/setup-task@v2
with: with: