vpn_gateway multiple usage. #7
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
name: validate | ||
on: | ||
pull_request_target: | ||
types: [opened, synchronize] | ||
permissions: read-all | ||
jobs: | ||
tf-lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- uses: terraform-linters/setup-tflint@v2 | ||
name: Setup TFLint | ||
- name: Show version | ||
run: tflint --version | ||
- name: Init TFLint | ||
run: tflint --init | ||
- name: Run TFLint | ||
run: tflint | ||
tf-fmt: | ||
name: Code Format | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: hashicorp/setup-terraform@v2 | ||
- run: terraform fmt --recursive -check=true | ||
tf-validate: | ||
name: Validate | ||
runs-on: ubuntu-latest | ||
container: | ||
image: hashicorp/terraform:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Validate Code | ||
env: | ||
AWS_REGION: us-east-1 | ||
TF_WARN_OUTPUT_ERRORS: 1 | ||
run: | | ||
terraform init | ||
terraform validate | ||
- name: Validate Examples | ||
run: | | ||
for example in $(find examples -maxdepth 1 -mindepth 1 -type d); do | ||
cd $example | ||
terraform init | ||
terraform validate | ||
cd - | ||
done |