Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: cairo <cairoeth@protonmail.com> Co-authored-by: sudo rm -rf --no-preserve-root / <pcaversaccio@users.noreply.github.com>
19 lines
362 B
Bash
Executable File
19 lines
362 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
export COVERAGE=true
|
|
export FOUNDRY_FUZZ_RUNS=10
|
|
|
|
# Hardhat coverage
|
|
hardhat coverage
|
|
|
|
if [ "${CI:-"false"}" == "true" ]; then
|
|
# Foundry coverage
|
|
forge coverage --report lcov --ir-minimum
|
|
# Remove zero hits
|
|
sed -i '/,0/d' lcov.info
|
|
fi
|
|
|
|
# Reports are then uploaded to Codecov automatically by workflow, and merged.
|