changeloguru/Makefile

33 lines
704 B
Makefile
Raw Normal View History

2022-11-27 18:28:59 +00:00
.PHONY: all test test-color coverage coverage-cli coverate-html lint format build
2022-07-03 14:34:46 +00:00
2022-11-27 18:28:59 +00:00
all: test-color lint format
2022-08-15 17:51:21 +00:00
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
2022-11-27 18:28:59 +00:00
format:
go install github.com/haunt98/gofimports/cmd/gofimports@latest
go install mvdan.cc/gofumpt@latest
gofimports -w -company github.com/make-go-great .
gofumpt -w -extra .
2022-09-04 16:30:16 +00:00
build:
go build -o changeloguru-dev ./cmd/changeloguru