Skip to content

Commit

Permalink
Publishing code coverage report using codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuchalla committed Jul 7, 2023
1 parent 03d5a31 commit e31238a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ jobs:
- name: Run Unit Tests
run: |
ginkgo -r --randomize-all --randomize-suites --fail-on-pending --cover --trace --v --coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage-report.html
- name: Upload Coverage Report to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.out
flag: unittests
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# go-commons

[![codecov](https://codecov.io/github/cloud-bulldozer/go-commons/branch/main/graph/badge.svg?token=CFPW1UV7FO)](https://codecov.io/github/cloud-bulldozer/go-commons)

0 comments on commit e31238a

Please sign in to comment.