Skip to content

Commit

Permalink
ci: create coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajil1213 committed Sep 1, 2023
1 parent bb0504c commit fe6a17e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,15 @@ jobs:
with:
# Configure action by specifying input parameters individually (option 2)
profile: cover.out
threshold-total: 95
threshold-total: 95

- name: make coverage badge
uses: action-badges/core@0.2.2
# if: contains(github.ref, 'main')
with:
label: coverage
message: ${{ steps.coverage.outputs.badge-text }}
message-color: ${{ steps.coverage.outputs.badge-color }}
file-name: coverage.svg
badge-branch: badges ## orphan branch where badge will be committed
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit fe6a17e

Please sign in to comment.