#23: Upgrade base module #51
Workflow file for this run
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: Check Terraform | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: "bash" | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup TFLint | |
uses: terraform-linters/setup-tflint@v4 | |
with: | |
tflint_version: v0.53.0 | |
- name: Log Terraform version | |
run: | | |
terraform version | |
tflint --version | |
- name: Run TFlint | |
run: | | |
tflint --init | |
tflint -f compact | |
- name: Validate Terraform | |
run: | | |
terraform init | |
terraform validate | |
- name: Check formatting | |
run: | | |
terraform fmt -check=true . |