Skip to content

Commit

Permalink
Merge pull request goradd#25 from spekary/coverage
Browse files Browse the repository at this point in the history
Moving coverage report to cover.io
  • Loading branch information
spekary authored Feb 10, 2022
2 parents c12ef98 + b2eb1a5 commit 292713e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,7 @@ jobs:
- name: Test
run: |
go test -v -cover ./... -coverprofile coverage.out -coverpkg ./...
go tool cover -func coverage.out -o coverage.out
- name: Go Coverage Badge
uses: tj-actions/coverage-badge-go@v1
- name: Upload coverage to Codecov
if: ${{ runner.os == 'Linux' && matrix.go == '1.17' }}
with:
green: 80
filename: coverage.out

- uses: stefanzweifel/git-auto-commit-action@v4
id: auto-commit-action
with:
commit_message: Apply Code Coverage Badge
skip_fetch: true
skip_checkout: true
file_pattern: ./README.md

- name: Push changes
if: steps.auto-commit-action.outputs.changes_detected == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.ref }}
run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![Build Status](https://img.shields.io/github/workflow/status/goradd/got/Go)
![Coverage](https://img.shields.io/badge/Coverage-94.4%25-brightgreen)
[![codecov](https://codecov.io/github.com/spekary/got/branch/main/graph/badge.svg?token=0L0IZVPZCI)](https://codecov.io/github.com/spekary/got)
[![Go Report Card](https://goreportcard.com/badge/github.com/goradd/got)](https://goreportcard.com/report/github.com/goradd/got)
# GoT

Expand Down

0 comments on commit 292713e

Please sign in to comment.