This commit is contained in:
Beau
2024-02-26 12:44:50 +00:00
commit 3cd7e44cb3
22 changed files with 2158 additions and 0 deletions

17
justfile Normal file
View File

@@ -0,0 +1,17 @@
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