Skip to content

Commit

Permalink
changed coverage output to txt and add Codecov token
Browse files Browse the repository at this point in the history
  • Loading branch information
Prawirdani committed Sep 17, 2024
1 parent afaf088 commit 68d4a61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
run: |
go get -d -v ./...
make test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: ./coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
COVERAGE_FILE := coverage.out
COVERAGE_FILE := coverage.txt
COVERAGE_HTML := coverage.html

test:
go test -v -count=1 -race ./... -cover

test\:coverage:
go test -v -count=1 -race ./... -coverprofile=coverage.out
go test -v -count=1 -race ./... -coverprofile=$(COVERAGE_FILE)


coverage-html:
Expand Down

0 comments on commit 68d4a61

Please sign in to comment.