2022-08-23 19:53:41 +00:00
|
|
|
.PHONY: default
|
2023-09-27 16:53:12 +00:00
|
|
|
default: check-fmt shellcheck
|
2022-08-23 19:53:41 +00:00
|
|
|
|
|
|
|
.PHONY: check-fmt
|
|
|
|
check-fmt: check-fmt-enos check-fmt-modules
|
|
|
|
|
|
|
|
.PHONY: fmt
|
|
|
|
fmt: fmt-enos fmt-modules
|
|
|
|
|
|
|
|
.PHONY: check-fmt-enos
|
|
|
|
check-fmt-enos:
|
|
|
|
enos fmt --check --diff .
|
|
|
|
|
|
|
|
.PHONY: fmt-enos
|
|
|
|
fmt-enos:
|
|
|
|
enos fmt .
|
|
|
|
|
|
|
|
.PHONY: check-fmt-modules
|
|
|
|
check-fmt-modules:
|
|
|
|
terraform fmt -check -diff -recursive ./modules
|
|
|
|
|
|
|
|
.PHONY: fmt-modules
|
|
|
|
fmt-modules:
|
|
|
|
terraform fmt -diff -recursive ./modules
|
2023-07-20 20:51:07 +00:00
|
|
|
|
|
|
|
.PHONY: validate-enos
|
|
|
|
validate-enos:
|
2023-09-27 16:53:12 +00:00
|
|
|
enos scenario validate --timeout 30m0s
|
2023-07-20 20:51:07 +00:00
|
|
|
|
|
|
|
.PHONY: lint
|
2023-09-27 16:53:12 +00:00
|
|
|
lint: check-fmt shellcheck validate-enos
|
|
|
|
|
|
|
|
.PHONY: shellcheck
|
|
|
|
shellcheck:
|
|
|
|
find ./modules/ -type f -name '*.sh' | xargs shellcheck
|