Skip to content

Commit

Permalink
chore: Add harhdat coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed Jan 31, 2024
1 parent 2a83396 commit e99cefa
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,35 @@ jobs:
run: yarn install --frozen-lockfile

- name: Test contracts
run: yarn test
run: yarn test

coverage-hardhat:
name: Hardhat coverage
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'coverage') }}
continue-on-error: true

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0

- run: yarn install --immutable

- name: Test contract coverage
run: yarn coverage
continue-on-error: true
env:
NODE_OPTIONS: --max-old-space-size=4096

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/contracts/coverage/lcov.info

0 comments on commit e99cefa

Please sign in to comment.