coverage:
uses: init4tech/actions/.github/workflows/solidity-coverage.yml@main
This workflow checks code coverage for Solidity contracts using Foundry’s coverage tools. It generates a coverage report and compares it against a committed .coverage-report file to ensure coverage doesn’t regress.
The workflow:
forge coverage.coverage-report fileThe repository must have a .coverage-report file committed that contains the expected coverage report. This file is used as a baseline for comparison.
The workflow uses FOUNDRY_PROFILE: ci for the coverage generation.
test/), script files (script/), and the BytesLib library--ir-minimum flag for more accurate reporting.coverage-report file