Skip to content

[skip-release] Update github-actions #37

[skip-release] Update github-actions

[skip-release] Update github-actions #37

Workflow file for this run

name: Lint and Test
on:
push:
jobs:
lint-test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3
with:
terraform_version: latest
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version: "stable"
- name: Install terraform-docs
run: go install github.com/terraform-docs/terraform-docs@v0.20.0
- name: Terraform Format Check
run: terraform fmt -check -recursive .
- name: Generate Documentation
run: make docs
- name: Check for Documentation Changes
run: |
if ! git diff --exit-code README.md; then
echo "❌ Documentation is out of date. Please run 'make docs' and commit the changes."
exit 1
else
echo "✅ Documentation is up to date."
fi
- name: Terraform Init
run: terraform init
- name: Terraform Validate
run: terraform validate