-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Only run the latest version of Terraform on PRs (#542)
* ref: Only run the latest version of Terraform on PRs * fix: lint errors
- Loading branch information
Showing
8 changed files
with
128 additions
and
68 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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
SWEEP ?= cloud | ||
SWEEP_TIMEOUT ?= 360m | ||
|
||
default: fmt lint install generate | ||
|
||
.PHONY: build | ||
build: | ||
go build -v ./... | ||
|
||
.PHONY: install | ||
install: build | ||
go install -v ./... | ||
|
||
.PHONY: lint | ||
lint: | ||
golangci-lint run | ||
|
||
.PHONY: generate | ||
generate: | ||
go generate ./... | ||
|
||
.PHONY: fmt | ||
fmt: | ||
gofmt -s -w -e . | ||
|
||
.PHONY: test | ||
test: | ||
go test -v -cover -timeout=120s -parallel=10 ./... | ||
|
||
.PHONY: testacc | ||
testacc: | ||
TF_ACC=1 go test -v -cover -timeout 120m ./... | ||
|
||
.PHONY: sweep | ||
sweep: | ||
# make sweep SWEEPARGS=-sweep-run=sentry_team | ||
# set SWEEPARGS=-sweep-allow-failures to continue after first failure | ||
@echo "WARNING: This will destroy infrastructure. Use only in development accounts." | ||
go test ./... -v -sweep=$(SWEEP) $(SWEEPARGS) -timeout $(SWEEP_TIMEOUT) | ||
|
||
.PHONY: sweeper | ||
sweeper: | ||
@echo "WARNING: This will destroy infrastructure. Use only in development accounts." | ||
go test ./... -v -tags=sweep -sweep=$(SWEEP) -sweep-allow-failures -timeout $(SWEEP_TIMEOUT) |
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
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
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
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
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