Skip to content

Commit

Permalink
Run cov on master branch only
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hopfensperger <f.hopfensperger@gmail.com>
  • Loading branch information
fhopfensperger committed Nov 5, 2021
1 parent 89caf8b commit 604edd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,21 @@ jobs:
run: go test -v ./... -covermode=count -coverprofile=coverage.out

- name: Convert coverage to lcov
if: startsWith(github.ref, 'refs/master')
uses: jandelgado/gcov2lcov-action@v1.0.0
with:
infile: coverage.out
outfile: coverage.lcov

- name: Upload coverages
if: startsWith(github.ref, 'refs/master')
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov

- name: Trigger Go Report Card
if: startsWith(github.ref, 'refs/master')
run: curl -d "repo=github.com/fhopfensperger/json-log-to-human-readable" https://goreportcard.com/checks

- name: Clean directory
Expand Down

0 comments on commit 604edd2

Please sign in to comment.