Skip to content

Audit the docs, README and homepage against the code, and fix what they promised #35

Audit the docs, README and homepage against the code, and fix what they promised

Audit the docs, README and homepage against the code, and fix what they promised #35

name: Terraform Example
on:
push:
paths:
- '.github/workflows/terraform-example.yml'
- 'terraform-example/**'
pull_request:
paths:
- '.github/workflows/terraform-example.yml'
- 'terraform-example/**'
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Terraform
uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
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@6ffdbaa3be476b3431f7275c26966ef32ff60337 # v6.3.2
- 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