mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
fix CI
This commit is contained in:
parent
d12455bc31
commit
3c611239b9
2 changed files with 7 additions and 4 deletions
3
.github/workflows/coverage.yml
vendored
3
.github/workflows/coverage.yml
vendored
|
@ -17,8 +17,7 @@ jobs:
|
|||
go vet ./...
|
||||
- name: Unit tests
|
||||
run: |
|
||||
sudo go test ./... -coverprofile coverage.out -covermode count
|
||||
sudo go tool cover -func coverage.out
|
||||
sudo make test-coverage
|
||||
- name: Quality Gate - Test coverage shall be above threshold
|
||||
env:
|
||||
TESTCOVERAGE_THRESHOLD: 0
|
||||
|
|
8
Makefile
8
Makefile
|
@ -1,4 +1,4 @@
|
|||
.PHONY: proto test
|
||||
.PHONY: proto test test-coverage
|
||||
export GOPRIVATE=github.com/anytypeio
|
||||
|
||||
proto:
|
||||
|
@ -17,4 +17,8 @@ proto:
|
|||
$(GOGO_START) protoc --gogofaster_out=$(PKGMAP):. --go-drpc_out=protolib=github.com/gogo/protobuf:. commonfile/fileproto/protos/*.proto
|
||||
|
||||
test:
|
||||
go test ./... --cover
|
||||
go test ./... --cover
|
||||
|
||||
test-coverage:
|
||||
go test ./... -coverprofile coverage.out -covermode count
|
||||
go tool cover -func coverage.out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue