jhl-labs/Test CLI Action
Run standardized tests and coverage with test-cli, publish results as annotations and a job summary, and expose machine-readable outputs for AI agents.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 14, 2026
- License
- MIT
Pinned Snippet
uses: jhl-labs/test-cli-action@b9a626cabe550ec6af2f074b1232934b2e555d8d # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GitHub token used by checkout and binary installation. | no | ${{ github.token }} |
| checkout | Whether this action should checkout the repository before running. | no | true |
| repository | Repository to checkout. | no | ${{ github.repository }} |
| ref | Git ref to checkout. | no | ${{ github.ref }} |
| fetch-depth | Checkout fetch depth. | no | 1 |
| version | test-cli version to install, such as v0.1.0. Use latest for the newest release. | no | latest |
| command | test-cli command to run (run, ingest, report). | no | run |
| target | Path or target passed to test-cli. | no | . |
| profile | test-cli profile (default | ci | release). | no | ci |
| languages | Comma-separated languages to restrict to (empty = autodetect). | no | "" |
| output-dir | Directory where test-cli writes reports. | no | reports/test |
| formats | Comma-separated test-cli output formats. | no | stdout,json,junit,cobertura,markdown,html |
| fail-under | Fail when total line coverage is below this percentage (0 disables). | no | 0 |
| annotation-limit | Maximum number of GitHub Actions annotations to emit for failing tests. | no | 100 |
| job-summary | Write a Markdown summary to the GitHub Actions job summary. | no | true |
| fail-on-test-failure | Return the test-cli exit code so the job fails on test failures or coverage gate. | no | true |
| extra-args | Extra arguments appended to the test-cli command. | no | "" |
Outputs
| name | description |
|---|---|
| exit-code | test-cli exit code. |
| tests-total | Total number of tests executed. |
| tests-failed | Number of failing tests (failures + errors). |
| coverage-pct | Total line coverage percentage. |
| passed | true when all tests passed and the coverage gate was satisfied. |
| report-dir | Directory containing the generated reports. |