File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 13
13
"compile" : " hardhat compile" ,
14
14
"lint" : " prettier --log-level warn --ignore-path .gitignore '{contracts,test}/**/*.sol' --check" ,
15
15
"lint:fix" : " prettier --log-level warn --ignore-path .gitignore '{contracts,test}/**/*.sol' --write" ,
16
- "coverage" : " hardhat coverage" ,
16
+ "coverage" : " scripts/checks/ coverage.sh " ,
17
17
"test" : " hardhat test"
18
18
},
19
19
"homepage" : " https://openzeppelin.com/contracts/" ,
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ export COVERAGE=true
6
+ export FOUNDRY_FUZZ_RUNS=10
7
+
8
+ # Hardhat coverage
9
+ hardhat coverage
10
+
11
+ if [ " ${CI:- " false" } " == " true" ]; then
12
+ # Foundry coverage
13
+ forge coverage --report lcov
14
+ # Remove zero hits
15
+ sed -i ' /,0/d' lcov.info
16
+ fi
17
+
18
+ # Reports are then uploaded to Codecov automatically by workflow, and merged.
You can’t perform that action at this time.
0 commit comments