mirror of
https://github.com/3bbbeau/tfvars-atlantis-config.git
synced 2024-11-25 07:50:51 +00:00
18 lines
478 B
Makefile
18 lines
478 B
Makefile
set dotenv-load := true
|
|
|
|
tool-golangci:
|
|
@hash golangci-lint > /dev/null 2>&1; if [ $? -ne 0 ]; then \
|
|
GOBIN="$(pwd)/tools/bin" go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
|
|
fi
|
|
|
|
lint: tool-golangci
|
|
@$(pwd)/tools/bin/golangci-lint run -E gofumpt --timeout 1m
|
|
|
|
build:
|
|
@go build -ldflags="-X 'github.com/3bbbeau/tfvars-atlantis-config/cmd.v=${VERSION}'"
|
|
|
|
test:
|
|
@go test -cover ./...
|
|
@go clean --testcache
|
|
@go test ./... -v
|