Skip to content

use LogStruct.info for typed logs #11

use LogStruct.info for typed logs

use LogStruct.info for typed logs #11

name: Terraform Example
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.7.5
- name: Terraform Init (example)
run: terraform -chdir=terraform-example init -backend=false
- name: Terraform Validate (example)
run: terraform -chdir=terraform-example validate
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
- name: TFLint (core rules only)
run: |
# TFLint >= 0.47 removed positional directory args; use --chdir
tflint --chdir terraform-example --init || true
tflint --chdir terraform-example -c .tflint.hcl