Skip to content

Commit

Permalink
chore: continue if wireit cache fails (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit authored Oct 2, 2023
1 parent b0d9b3f commit 37e224a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/unitTestsLinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
node-version: ${{ matrix.node_version }}
cache: yarn
- uses: google/wireit@setup-github-actions-caching/v1
continue-on-error: true
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v3
Expand All @@ -27,6 +28,11 @@ jobs:
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
if: ${{ steps.cache-nodemodules.outputs.cache-hit != 'true' }}
- run: yarn build
- run: yarn test
- name: yarn test
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
with:
max_attempts: 2
command: yarn test
timeout_minutes: 60
env:
SF_DISABLE_TELEMETRY: true
9 changes: 5 additions & 4 deletions .github/workflows/unitTestsWindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: google/wireit@setup-github-actions-caching/v1
continue-on-error: true
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
Expand All @@ -27,11 +28,11 @@ jobs:
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
if: ${{ steps.cache-nodemodules.outputs.cache-hit != 'true' }}
- run: yarn build
- uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
env:
SF_DISABLE_TELEMETRY: true
name: yarn test
- name: yarn test
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
with:
max_attempts: 2
command: yarn test
timeout_minutes: 60
env:
SF_DISABLE_TELEMETRY: true

0 comments on commit 37e224a

Please sign in to comment.