generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ef6f99
commit e54a54b
Showing
1 changed file
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
default: testacc | ||
default: build | ||
|
||
build: | ||
go build -v ./... | ||
|
||
install: build | ||
go install -v ./... | ||
|
||
# See https://golangci-lint.run/ | ||
lint: | ||
golangci-lint run | ||
|
||
# Generate docs and copywrite headers | ||
generate: | ||
cd tools; go generate ./... | ||
|
||
fmt: | ||
gofmt -s -w -e . | ||
|
||
test: | ||
go test -v -cover -timeout=120s -parallel=4 ./... | ||
|
||
# Run acceptance tests | ||
.PHONY: testacc | ||
testacc: | ||
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m | ||
TF_ACC=1 go test -v -cover -timeout 120m ./... | ||
|
||
.PHONY: build install lint generate fmt test testacc |