feat(contract): change contract unit test coverage to codecov (#1046)

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
This commit is contained in:
georgehao
2023-12-13 15:45:14 +08:00
committed by GitHub
parent 7dd1b05f46
commit 8cb750e5eb
3 changed files with 13 additions and 10 deletions

View File

@@ -82,17 +82,15 @@ jobs:
run : forge coverage --report lcov
- name : Prune coverage
run : lcov --remove ./lcov.info -o ./lcov.info.pruned 'src/mocks/*' 'src/test/*' 'scripts/*' 'node_modules/*' 'lib/*'
run : lcov --rc branch_coverage=1 --remove ./lcov.info -o ./lcov.info.pruned 'src/mocks/*' 'src/test/*' 'scripts/*' 'node_modules/*' 'lib/*'
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
coverage-files: contracts/lcov.info.pruned
minimum-coverage: 0
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: contracts
update-comment: true
files: contracts/lcov.info.pruned
flags: contracts
hardhat:
if: github.event.pull_request.draft == false

View File

@@ -36,3 +36,8 @@ flag_management:
- type: project
target: auto
threshold: 1%
- name: contracts
statuses:
- type: project
target: auto
threshold: 1%

View File

@@ -4,7 +4,7 @@ This library includes contracts and interfaces needed to interact with the Scrol
# Overview
## Instalation
## Installations
```bash
npm install @scroll-tech/contracts