Checks a given coverage summary against a given threshold and fails if the threshold is not reached.
MIT License
This action is a lightweight coverage checker with no dependencies to third party services and no token required.
It's sole purpose is to check the current coverage against a given threshold and fails, if the threshold is not exceeded (less than).
It currently works only using the json summary reporter.
A future implementation will definitely include a pure lcov
check.
path
Required The path to your coverage file.
min
Required The minimal threshold of required coverage
message
On success, a short message with the current overall coverage is returned.
uses: actions/minimal-coverage@v1
with:
path: 'path/to/coverage/jsonSummary.json'
min: 85