fix CI
This commit is contained in:
parent
d12455bc31
commit
3c611239b9
3
.github/workflows/coverage.yml
vendored
3
.github/workflows/coverage.yml
vendored
@ -17,8 +17,7 @@ jobs:
|
|||||||
go vet ./...
|
go vet ./...
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: |
|
run: |
|
||||||
sudo go test ./... -coverprofile coverage.out -covermode count
|
sudo make test-coverage
|
||||||
sudo go tool cover -func coverage.out
|
|
||||||
- name: Quality Gate - Test coverage shall be above threshold
|
- name: Quality Gate - Test coverage shall be above threshold
|
||||||
env:
|
env:
|
||||||
TESTCOVERAGE_THRESHOLD: 0
|
TESTCOVERAGE_THRESHOLD: 0
|
||||||
|
|||||||
6
Makefile
6
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: proto test
|
.PHONY: proto test test-coverage
|
||||||
export GOPRIVATE=github.com/anytypeio
|
export GOPRIVATE=github.com/anytypeio
|
||||||
|
|
||||||
proto:
|
proto:
|
||||||
@ -18,3 +18,7 @@ proto:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
go test ./... --cover
|
go test ./... --cover
|
||||||
|
|
||||||
|
test-coverage:
|
||||||
|
go test ./... -coverprofile coverage.out -covermode count
|
||||||
|
go tool cover -func coverage.out
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user