php-fpm-exporter/Makefile
Enrico Stahn 4a9fe13966
gometalinter replacement (#73)
* chore: replace gometalinter with golangci
  gometalinter is deprecated and replaced by golangci.
* chore: update go dependencies
* chore: fix lint errcheck reports
   golangci-lint reported multiple errcheck issues, e.g.

   ```
   Error return value of `p.Update` is not checked (errcheck)
   ```

* chore: GitHub actions replaces CircleCI
2020-03-04 16:34:23 +11:00

27 lines
664 B
Makefile

.PHONY: test
.DEFAULT_GOAL := help
help: ## List targets & descriptions
@cat Makefile* | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
deps: ## Get dependencies
go get -d -v ./...
test: ## Run tests
go test -short ./...
test-coverage: ## Create a code coverage report
mkdir -p .cover
go test -coverprofile .cover/cover.out ./...
test-coverage-html: ## Create a code coverage report in HTML
mkdir -p .cover
go test -coverprofile .cover/cover.out ./...
go tool cover -html .cover/cover.out
lint: ## Run linters
golangci-lint run
fmt: ## Fix formatting issues
goimports -w .