changeloguru/Makefile

27 lines
509 B
Makefile
Raw Normal View History

2022-09-04 16:30:16 +00:00
.PHONY: all test test-color coverage coverage-cli coverate-html lint build
2022-07-03 14:34:46 +00:00
2022-08-15 17:51:21 +00:00
all: test-color lint
go mod tidy
2021-11-06 07:37:03 +00:00
test:
2022-08-15 17:51:21 +00:00
go test -race -failfast ./...
2021-11-06 07:37:03 +00:00
2022-08-15 17:51:21 +00:00
test-color:
go install github.com/haunt98/go-test-color@latest
go-test-color -race -failfast ./...
coverage:
go test -coverprofile=coverage.out ./...
coverage-cli: coverage
2021-11-06 07:37:03 +00:00
go tool cover -func=coverage.out
2022-08-15 17:51:21 +00:00
coverage-html: coverage
2021-11-06 07:37:03 +00:00
go tool cover -html=coverage.out
lint:
golangci-lint run ./...
2022-09-04 16:30:16 +00:00
build:
go build -o changeloguru-dev ./cmd/changeloguru