Skip to content

Commit

Permalink
cache node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick95550 committed Oct 5, 2023
1 parent 30b57df commit 9da5a58
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ jobs:
node-version: 18.14.1
cache: 'yarn'

- name: cache node modules
uses: actions/cache@v3
with:
path: ./node_modules
key: yarn-${{hashFiles('./yarn.lock')}}

- name: cache repo
uses: actions/cache@v3
with:
path: ./
key: repo-${{hashFiles('./yarn.lock')}}
key: repo-${{hashFiles('./')}}

- name: yarn install
run: yarn
Expand All @@ -41,7 +47,7 @@ jobs:
uses: actions/cache@v3
with:
path: ./
key: repo-${{hashFiles('./yarn.lock')}}
key: repo-${{hashFiles('./')}}

- name: test contracts
run: ITERATIONS=10000 npm test
Expand All @@ -64,7 +70,7 @@ jobs:
uses: actions/cache@v3
with:
path: ./
key: repo-${{hashFiles('./yarn.lock')}}
key: repo-${{hashFiles('./')}}

- name: test contracts
run: yarn coverage
Expand Down

0 comments on commit 9da5a58

Please sign in to comment.