Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
badges
  • Loading branch information
micronull committed Sep 19, 2023
1 parent c00fa32 commit e8443aa
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 @@ -28,8 +28,19 @@ jobs:
run: go test -v ./... -coverprofile=./cover.out

- name: go-test-coverage
uses: vladopajic/go-test-coverage@v2.7.1
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
local-prefix: github.com/micronull/i3rotonda

- name: make coverage badge
uses: action-badges/[email protected]
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 e8443aa

Please sign in to comment.