Skip to content

Commit

Permalink
ci: Make codcov less strict for now to unblock development (#125)
Browse files Browse the repository at this point in the history
* Set target to 50% until we figure out the better accuracy with the go
tests.

* Add a make rule that validates codcov's config file.
  • Loading branch information
shahzadlone authored Jan 19, 2022
1 parent 0cd7370 commit 6ced95b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ test\:coverage:
go test ./... -coverprofile cover.out
go tool cover -func cover.out | grep total | awk '{print $$3}'

.PHONY: validate\:codecov
validate\:codecov:
curl --data-binary @codecov.yml https://codecov.io/validate

.PHONY: lint
lint:
golangci-lint run --config .golangci.sourceinc.yaml
Expand Down
9 changes: 6 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ coverage:
# Learn more at https://docs.codecov.io/docs/commit-status
project:
default:
target: auto
threshold: 5% # allow this much decrease on project
target: 50%
threshold: 0.05 # allow this much decrease on project
flags:
- unit

patch: true
patch:
default:
target: 50%
threshold: 0.05 # allow this much decrease in this commit / change / patch.

changes: false

Expand Down

0 comments on commit 6ced95b

Please sign in to comment.