Skip to content

Commit

Permalink
Wrap yarn install with retry for Testdriver and Build Helper (#1494)
Browse files Browse the repository at this point in the history
Yarn Install (specifically the `sharp` builds) are flaky on Windows. I'm
adding a retry around this step to prevent unnecessary failures
  • Loading branch information
esimkowitz authored Dec 11, 2024
1 parent 58fbbd7 commit 7df441a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,14 @@ jobs:
with:
node-version: ${{env.NODE_VERSION}}
- name: Install Yarn
run: |
corepack enable
yarn install
uses: nick-fields/retry@v3
with:
command: |
corepack enable
yarn install
timeout_minutes: 5
retry_on: error
max_attempts: 3
- name: Install Task
uses: arduino/setup-task@v2
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ jobs:
with:
node-version: ${{env.NODE_VERSION}}
- name: Install Yarn
run: |
corepack enable
yarn install
uses: nick-fields/retry@v3
with:
command: |
corepack enable
yarn install
timeout_minutes: 5
retry_on: error
max_attempts: 3
- name: Install Task
uses: arduino/setup-task@v2
with:
Expand Down

0 comments on commit 7df441a

Please sign in to comment.