Skip to content

Commit

Permalink
Add code coverage badge for blueprint-cli BOP-1677 (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
tppolkow authored Jan 10, 2025
1 parent 5dce469 commit 27f70f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ jobs:
working-directory: .
run: make test

- name: Update coverage badge
uses: ncruces/go-coverage-report@v0
if: github.ref == 'refs/heads/main'
with:
report: false
chart: false
amend: true
badge-style: flat
coverage-file: coverage.txt

- name: Archive code coverage results
uses: actions/upload-artifact@v4
id: artifact_upload
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Blueprint Controller
# Blueprint Controller [![cov](https://github.com/Mirantis/blueprint-cli/wiki/coverage.svg)](https://github.com/Mirantis/blueprint-cli/wiki/coverage.svg)

## The Repository
This is the repository for the Blueprint Controller. The Blueprint Controller is a CLI tool that allows you to manage your Blueprint clusters. This repo contains the actual source code for compiling the Blueprint Controller (`bctl`) binary. This source code is available to everyone under the [Apache License 2.0](./LICENSE).
Expand Down

0 comments on commit 27f70f9

Please sign in to comment.