Skip to content

Commit

Permalink
chore: use GOBadge instead tj-actions to make it more flexible for us…
Browse files Browse the repository at this point in the history
…; revert back coverage badge changes on README.md;
  • Loading branch information
riandyrn committed Jul 16, 2023
1 parent b228333 commit c3ee707
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ jobs:
- name: Run Automated Tests
run: make test

- name: Go Coverage Badge
uses: tj-actions/coverage-badge-go@v2
with:
green: 80
filename: ./.tmp/cov-report/coverage.out
- name: Install Go
uses: actions/[email protected]

- name: Install GOBadge
run: go install github.com/AlexBeauchemin/gobadge@latest

- name: Generate Coverage Badge
run: gobadge -filename=./.tmp/cov-report/coverage.out -green=80 -target=README.md -label=coverage

- name: Verify Changed files
uses: tj-actions/verify-changed-files@v12
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Hex Monscape 👾
![Coverage](https://img.shields.io/badge/Coverage-82.7%25-brightgreen)

[![Go Reference](https://pkg.go.dev/badge/github.com/Haraj-backend/hex-monscape.svg)](https://pkg.go.dev/github.com/Haraj-backend/hex-monscape)
[![Go Report Card](https://goreportcard.com/badge/github.com/Haraj-backend/hex-monscape)](https://goreportcard.com/report/github.com/Haraj-backend/hex-monscape)
![Coverage](https://img.shields.io/badge/coverage-83.4%25-brightgreen)
Expand Down

0 comments on commit c3ee707

Please sign in to comment.