tfvars-atlantis-config/justfile

18 lines
478 B
Makefile
Raw Permalink Normal View History

2024-02-26 12:44:50 +00:00
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