Skip to content

Commit

Permalink
Add codecov.io integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Nov 5, 2021
1 parent d253ede commit 43aff32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
codecov:
bot: mangodb-bot
coverage:
range: "30...60"
github_checks:
annotations: false
5 changes: 5 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ jobs:
- name: Run tests
run: make test

- name: Upload coverage information
uses: codecov/codecov-action@v2
with:
files: ./cover.txt

- name: Check dirty and clean
run: |
git status
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ fmt: bin/gofumports ## Format code
bin/gofumports -w -local=github.com/MangoDB-io/MangoDB .

test: ## Run tests
go test -shuffle=on ./...
go test -race -shuffle=on ./...
go test -race -coverprofile=cover.txt -coverpkg=./... -shuffle=on ./...

fuzz-short: ## Fuzz for 1 minute
go test -list='Fuzz.*' ./...
Expand Down

0 comments on commit 43aff32

Please sign in to comment.