1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 14:07:02 +09:00
This commit is contained in:
Sergey Cherepanov 2023-01-07 13:26:46 +03:00 committed by Mikhail Iudin
parent d12455bc31
commit 3c611239b9
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
.PHONY: proto test .PHONY: proto test test-coverage
export GOPRIVATE=github.com/anytypeio export GOPRIVATE=github.com/anytypeio
proto: proto:
@ -17,4 +17,8 @@ proto:
$(GOGO_START) protoc --gogofaster_out=$(PKGMAP):. --go-drpc_out=protolib=github.com/gogo/protobuf:. commonfile/fileproto/protos/*.proto $(GOGO_START) protoc --gogofaster_out=$(PKGMAP):. --go-drpc_out=protolib=github.com/gogo/protobuf:. commonfile/fileproto/protos/*.proto
test: test:
go test ./... --cover go test ./... --cover
test-coverage:
go test ./... -coverprofile coverage.out -covermode count
go tool cover -func coverage.out