generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 968 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
BINARY_DIR=bin
BINARY_NAME=terraform-provider-dotenv
.PHONY: build testacc test lint generate fmt
build:
mkdir -p $(BINARY_DIR)
go build -o $(BINARY_DIR)/$(BINARY_NAME)
testacc:
TF_ACC=1 go test -v ./internal/provider -timeout 5m
test:
go test -v ./... -timeout 5m
lint:
golangci-lint run ./...
go run github.com/bflad/tfproviderlint/cmd/tfproviderlintx@latest ./...
generate:
go generate ./...
fmt:
go fmt ./...
-go run mvdan.cc/gofumpt@latest -l -w .
-go run golang.org/x/tools/cmd/goimports@latest -l -w .
-go run github.com/bombsimon/wsl/v4/cmd...@latest -strict-append -test=true -fix ./...
-go run github.com/catenacyber/perfsprint@latest -fix ./...
-go run github.com/bflad/tfproviderlint/cmd/tfproviderlintx@latest -fix ./...
download:
@echo Download go.mod dependencies
@go mod download
install-devtools: download
@echo Installing tools from tools.go
@cat tools/tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go install %