Skip to content

Commit

Permalink
Add code coverage to PRs and commits (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
BooleanCat authored Aug 14, 2023
1 parent f16e895 commit 5eb752b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
env: { SKIP_LINT: true }
- uses: golangci/golangci-lint-action@v3
with: { version: "latest" }
- run: make cov
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test:
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage.txt
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ endif

test:
go test -v ./...

cov:
go test -race -coverprofile=coverage.txt -covermode=atomic ./...

0 comments on commit 5eb752b

Please sign in to comment.