Skip to content

Commit

Permalink
move cache key to install points
Browse files Browse the repository at this point in the history
  • Loading branch information
douglance committed Dec 17, 2024
1 parent b4e107a commit 8c2914d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}
cache-key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-monorepo

lint:
name: Lint on Node.js v${{ matrix.node-version }}
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}
cache-key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-monorepo

- name: Lint sdk
run: |
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}
cache-key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-monorepo

- run: yarn audit:ci

Expand All @@ -128,7 +128,7 @@ jobs:
- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}
cache-key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-monorepo

- name: Build
run: |
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}
cache-key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-monorepo

- name: Set up the local node
uses: OffchainLabs/actions/run-nitro-test-node@main
Expand Down

0 comments on commit 8c2914d

Please sign in to comment.