[BE] Enable UFMT on torchci in CI (#4700) #1409
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: TFLint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- ".github/workflows/tflint.yml" | |
- "terraform-aws-github-runner/**" | |
jobs: | |
tflint: | |
name: TFLint | |
runs-on: ubuntu-latest | |
container: node:14 | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout source code | |
- uses: terraform-linters/setup-tflint@v2 | |
name: Setup TFLint | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Terraform | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: 1.5.1 | |
terraform_wrapper: false | |
- name: Show version | |
run: tflint --version | |
- name: "Init TFLint download-lambda" | |
working-directory: terraform-aws-github-runner/modules/download-lambda | |
run: tflint --init | |
- name: "Init terraform download-lambda" | |
working-directory: terraform-aws-github-runner/modules/download-lambda | |
run: terraform init | |
- name: "Run TFLint download-lambda" | |
working-directory: terraform-aws-github-runner/modules/download-lambda | |
run: tflint --module | |
- name: "Run terraform validate download-lambda" | |
working-directory: terraform-aws-github-runner/modules/download-lambda | |
run: terraform validate | |
- name: "Init TFLint runner-binaries-syncer" | |
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer | |
run: tflint --init | |
- name: "Init terraform runner-binaries-syncer" | |
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer | |
run: terraform init | |
- name: "Run TFLint runner-binaries-syncer" | |
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer | |
run: tflint --module | |
- name: "Run terraform validate runner-binaries-syncer" | |
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer | |
run: terraform validate | |
- name: "Init TFLint runners-instances" | |
working-directory: terraform-aws-github-runner/modules/runners-instances | |
run: tflint --init | |
- name: "Init terraform runners-instances" | |
working-directory: terraform-aws-github-runner/modules/runners-instances | |
run: terraform init | |
- name: "Run TFLint runners-instances" | |
working-directory: terraform-aws-github-runner/modules/runners-instances | |
run: tflint --module | |
- name: "Run terraform validate runners-instances" | |
working-directory: terraform-aws-github-runner/modules/runners-instances | |
run: terraform validate | |
- name: "Init TFLint runners" | |
working-directory: terraform-aws-github-runner/modules/runners | |
run: tflint --init | |
- name: "Init terraform runners" | |
working-directory: terraform-aws-github-runner/modules/runners | |
run: terraform init | |
- name: "Run TFLint runners" | |
working-directory: terraform-aws-github-runner/modules/runners | |
run: tflint --module | |
- name: "Run terraform validate runners" | |
working-directory: terraform-aws-github-runner/modules/runners | |
run: terraform validate | |
- name: "Init TFLint setup-iam-permissions" | |
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions | |
run: tflint --init | |
- name: "Init terraform setup-iam-permissions" | |
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions | |
run: terraform init | |
- name: "Run TFLint setup-iam-permissions" | |
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions | |
run: tflint --module | |
- name: "Run terraform validate setup-iam-permissions" | |
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions | |
run: terraform validate | |
- name: "Init TFLint webhook" | |
working-directory: terraform-aws-github-runner/modules/webhook | |
run: tflint --init | |
- name: "Init terraform webhook" | |
working-directory: terraform-aws-github-runner/modules/webhook | |
run: terraform init | |
- name: "Run TFLint webhook" | |
working-directory: terraform-aws-github-runner/modules/webhook | |
run: tflint --module | |
- name: "Run terraform validate webhook" | |
working-directory: terraform-aws-github-runner/modules/webhook | |
run: terraform validate | |
- name: "Init TFLint main" | |
working-directory: terraform-aws-github-runner | |
run: tflint --init | |
- name: "Init terraform main" | |
working-directory: terraform-aws-github-runner | |
run: terraform init | |
- name: "Run TFLint main" | |
working-directory: terraform-aws-github-runner | |
run: tflint --module | |
- name: "Run terraform validate terraform-aws-github-runner" | |
working-directory: terraform-aws-github-runner | |
run: terraform validate | |