2024-05-05 07:11:52 +00:00
|
|
|
LDFLAGS?=--ldflags '-extldflags "-static"' --ldflags="-X 'main.commit=$(shell git rev-parse HEAD)' -X 'main.version=$(shell git describe --tags)' -X 'main.date=$(shell date '+%Y-%m-%d %T.%s%z')'"
|
2024-04-04 19:43:46 +00:00
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
|
|
|
build:
|
2024-05-05 07:11:52 +00:00
|
|
|
|
2024-04-04 19:43:46 +00:00
|
|
|
test:
|
2024-05-05 07:11:52 +00:00
|
|
|
go test -coverprofile=artifacts/coverage.profile ./...
|
|
|
|
go tool cover -html=artifacts/coverage.profile -o artifacts/code-coverage.html
|