fix(ci): add coverage
Some checks failed
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Waiting to run
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 21s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Failing after 50s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 1m34s
Lint Markdown files / Run markdown linter (push) Successful in 33s

This commit is contained in:
2025-10-29 22:24:30 +01:00
parent 45e9558e57
commit 84b85fdd37
3 changed files with 19 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ PHONY+=test/unit
test/unit:
CGO_ENABLED=0 \
GOPROXY=$(shell go env GOPROXY) \
go test -v -p 1 -coverprofile=coverage.txt -covermode=count -timeout 1200s ./...
go test -v -p 1 -coverprofile=coverage.out -covermode=count -timeout 1200s ./...
PHONY+=test/integration
test/integration:
@@ -49,10 +49,10 @@ test/integration:
go test -v -p 1 -count=1 -timeout 1200s ./it/...
PHONY+=test/coverage
test/coverage: test/unit
test/coverage:
CGO_ENABLED=0 \
GOPROXY=$(shell go env GOPROXY) \
go tool cover -html=coverage.txt
go tool cover -func=coverage.out
# GOLANGCI-LINT
# ==============================================================================