Skip to content

Commit

Permalink
Trying to fix intermittent yarn cahche failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jtuchscherer committed Dec 24, 2024
1 parent 23c63bc commit 7f304c2
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,31 @@ jobs:
cache: yarn
cache-dependency-path: web/yarn.lock

- name: Cache node_modules
uses: actions/cache@v4
- name: Get Yarn Cache Directory Path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Restore Dependencies Cache
uses: actions/cache/restore@v3
id: restore-cache
with:
path: ${{ github.workspace }}/web/node_modules
key: ${{ runner.os }}-${{ runner.arch }}-yarn-node_modules-${{ hashFiles('web/yarn.lock') }}
path: |
node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-

- name: Install Dependencies
run: yarn

- name: Cache Dependencies
uses: actions/cache/save@v3
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
path: |
node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Lint
run: make -C web lint
Expand Down

0 comments on commit 7f304c2

Please sign in to comment.