hipcall/Mix Coverage

Parse mix test.coverage output (Elixir 1.20+), post a sticky PR comment, and enforce coverage thresholds.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 29, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: hipcall/mix-coverage-action@3244590516aef77e171cd52656e6e5e9b07ff1ee # v1.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenGitHub token used to post the PR comment. Pass secrets.GITHUB_TOKEN from the caller workflow.yes
coverage-commandCommand that produces a `mix test --cover` or `mix test.coverage` table on stdout. Ignored when `coverage-file` is set.nomix test.coverage
coverage-filePath to a file containing pre-captured coverage output. When set, `coverage-command` is skipped.no""
minimum-coverageFail the step when total coverage is below this percentage (0-100). Set to 0 to disable.no0
minimum-module-coverageFail the step when any reported module is below this percentage (0-100). Applies to every module in the report. Set to 0 to disable.no0
include-changed-filesWhen true and the event is `pull_request`, the PR comment includes a Changed files section listing modules mapped from files modified in the PR. Informational only; no gate is applied.nofalse
commentPR comment behavior. One of `sticky` (create or update a marked comment), `new` (always add a new comment), or `off` (skip commenting).nosticky
working-directoryDirectory to run the coverage command in.no.
namedescription
total-coverageTotal coverage percentage as a string, e.g. "85.70".
failed-modulesJSON array of modules below the per-module threshold after any changed-files filter.