Skip to content

Commit

Permalink
update cachekey
Browse files Browse the repository at this point in the history
  • Loading branch information
douglance committed Dec 13, 2024
1 parent 5c4e9c6 commit b2581fc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
MAINNET_RPC: ${{ secrets.MAINNET_RPC }}
CACHE_KEY: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-monorepo

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


lint:
Expand All @@ -51,6 +52,8 @@ jobs:

- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}

- name: Lint sdk
run: |
Expand Down Expand Up @@ -96,6 +99,8 @@ jobs:

- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}

- run: yarn audit:ci

Expand All @@ -117,6 +122,8 @@ jobs:

- name: Install node_modules
uses: OffchainLabs/actions/node-modules/install@main
with:
cache-key: ${{ env.CACHE_KEY }}

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

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

0 comments on commit b2581fc

Please sign in to comment.