Ensure cross-platform of coverage.sh (#5316)

This commit is contained in:
Voronor
2025-02-26 14:09:01 +01:00
committed by GitHub
parent f999ba42a1
commit 506e1f827a

View File

@ -14,7 +14,11 @@ if [ "${CI:-"false"}" == "true" ]; then
# Foundry coverage
forge coverage --report lcov --ir-minimum
# Remove zero hits
sed -i '/,0/d' lcov.info
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' '/,0/d' lcov.info
else
sed -i '/,0/d' lcov.info
fi
fi
# Reports are then uploaded to Codecov automatically by workflow, and merged.