-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: synced file(s) with honestbank/.github
- Loading branch information
1 parent
2e73d11
commit 950b16d
Showing
3 changed files
with
64 additions
and
28 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,12 +1,14 @@ | ||
compact: true | ||
directory: | ||
- . | ||
- . | ||
download-external-modules: true | ||
evaluate-variables: true | ||
external-modules-download-path: .external_modules | ||
framework: | ||
- all | ||
- all | ||
quiet: true | ||
skip-path: | ||
- .external_modules | ||
- modules | ||
- catalog-info.yml | ||
baseline: .checkov.baseline |
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 |
---|---|---|
@@ -1,23 +1,19 @@ | ||
lint: | ||
terraform fmt --recursive | ||
|
||
validate: lint | ||
cd examples/create_mysql_instance_with_public_ip/; terraform init --upgrade; terraform validate | ||
cd examples/create_mysql_instance_with_private_ip/; terraform init --upgrade; terraform validate | ||
cd examples/mysql_instance_with_read_replica/; terraform init --upgrade; terraform validate | ||
cd examples/postgres_instance_with_read_replica/; terraform init --upgrade; terraform validate | ||
commit: docs validate | ||
|
||
docs: | ||
terraform-docs --lockfile=false -c .terraform-docs.yml . | ||
cd examples/create_mysql_instance_with_public_ip/; terraform-docs --lockfile=false markdown . --output-file README.md --output-mode inject | ||
cd examples/create_mysql_instance_with_private_ip/; terraform-docs --lockfile=false markdown . --output-file README.md --output-mode inject | ||
cd examples/mysql_instance_with_read_replica/; terraform-docs --lockfile=false markdown . --output-file README.md --output-mode inject | ||
cd examples/postgres_instance_with_read_replica/; terraform-docs --lockfile=false markdown . --output-file README.md --output-mode inject | ||
|
||
commit: docs validate | ||
init: | ||
git submodule update --init --recursive | ||
terraform init -upgrade | ||
|
||
apply_and_destroy: | ||
terraform apply -auto-approve && terraform apply -auto-approve -destroy | ||
lint: | ||
terraform fmt --recursive | ||
|
||
tests: | ||
cd test; go clean -testcache; ./test.sh | ||
# Super long timeout since this Makefile will be used in various repositories | ||
cd test; go clean -testcache; go test -v -timeout 60m | ||
|
||
validate: lint | ||
terraform init --upgrade | ||
terraform validate |