[Sync] 18171 (#119) #232
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
on: | |
push | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.10.6 | |
- name: Install cfn-lint | |
run: pip install cfn-lint | |
- name: Setup Terraform | |
uses: hashicorp/[email protected] | |
with: | |
terraform_version: 1.3.4 | |
- name: Setup tflint | |
uses: terraform-linters/[email protected] | |
- name: Run terraform fmt | |
run: terraform fmt -check -recursive ./terraform | |
- name: Run tflint | |
run: | | |
pushd terraform | |
tflint --recursive | |
popd | |
- name: Run cfn-lint | |
run: cfn-lint -i W3045 -- cloudformation/*.yml |