Skip to content

Commit

Permalink
fix(ci): badge calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Aug 22, 2024
1 parent 3b6a5b2 commit 0f4e5c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 54 deletions.
10 changes: 4 additions & 6 deletions .github/actions/automatic-updates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ runs:
make generate codegen update-docs
# Coverage badge
- name: Run Test
- name: Run Test and get coverage badge
shell: bash
run: |
go test -v ./... -covermode=count -coverprofile=coverage.out
Expand All @@ -76,11 +76,9 @@ runs:
go tool cover -func=coverage.mod.out -o=coverage.mod.out
grep -o -P '(?<=\(statements\))(.+)(?=%)' coverage.mod.out | xargs > coverage
touch badge.out
- name: Go coverage badge
uses: ./.github/actions/coverage-badge
with:
filename: coverage.out
target: badge.out
wget https://gobinaries.com/github.com/AlexBeauchemin/[email protected] -O gobadge
gobadge -filename=coverage -target=badge.out
- name: Convert badge to adoc
shell: bash
run: |
Expand Down
48 changes: 0 additions & 48 deletions .github/actions/coverage-badge/action.yml

This file was deleted.

0 comments on commit 0f4e5c8

Please sign in to comment.