{"repo":"GaelGirodon/ci-badges-action","free":true,"listed":false,"github":"https://github.com/GaelGirodon/ci-badges-action","clone":"git clone https://github.com/GaelGirodon/ci-badges-action.git","description":"Badges for test results and code coverage","language":"JavaScript","stars":31,"topics":["actions","badge","ci","coverage","github","github-actions","test","tests","shields"],"license":"GPL-3.0","category":"workflow-automation","readme_excerpt":"CI Badges action This action generates badges (as JSON files) from Go, JUnit, Cobertura, JaCoCo and LCOV test and coverage reports (most test runners and code coverage tools, including Mocha, Jest, PHPUnit, c8, Istanbul/nyc, and more, support at least one of these formats) and upload them to a Gist to make them available to Shields through the endpoint feature with (almost) zero configuration. Usage Create a Gist and an access token (with the gist scope) and store the access token in your repository secrets. Add the action to your workflow (after running tests, as reports must be available in the current working directory): Each generated badge JSON file is uploaded to your Gist and is available via: https://gist.githubusercontent.com/{user}/{gist-id}/raw/{repo}-[{ref}-]{format}-{type}.json , e.g. .../myproject-cobertura-coverage.json . This URL can be used with Shields Endpoint to generate the badge SVG image: https://img.shields.io/endpoint?url={url} . The usual query parameters ( style , label , ...) can be used to further customize the badge. Inputs Name Required Default Description --------- :------: --------------- ------------------------------------------------------- gist-id ✔️ The unique identifier of the Gist token ✔️ GitHub REST API access token (with the gist scope) prefix Repository name Filenames prefix ref false Include the short ref name (branch or tag) in filenames Badges This action loads reports, extracts key data and generates JSON files following the Shi","default_branch":null,"files":null,"tree":[],"storefront":"/r/GaelGirodon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GaelGirodon/ci-badges-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}