Skip to content

Commit

Permalink
testing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick95550 committed Oct 5, 2023
1 parent 129fcbb commit 30b57df
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/cache@v3
with:
path: ./
key: repo-${{hashFiles('./')}}
key: repo-${{hashFiles('./yarn.lock')}}

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

- name: test contracts
run: ITERATIONS=10000 npm test

- name: prepare outputs
run: npx ts-node scripts/parse_artifacts.ts

- name: store artifacts
uses: actions/upload-artifact@v3
with:
name: gas-report
path: ./gasReport.txt

test-coverage:
needs: test-node
runs-on: ubuntu-latest
Expand All @@ -58,10 +64,16 @@ jobs:
uses: actions/cache@v3
with:
path: ./
key: repo-${{hashFiles('./')}}
key: repo-${{hashFiles('./yarn.lock')}}

- name: test contracts
run: yarn coverage

- name: check coverage
run: npx istanbul check-coverage --statements 100 --functions 100 --lines 100

- name: store artifacts
uses: actions/upload-artifact@v3
with:
name: coverage
path: ./coverage

0 comments on commit 30b57df

Please sign in to comment.