Skip to content

[skip-release] Update github-actions #30

[skip-release] Update github-actions

[skip-release] Update github-actions #30

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3
with:
terraform_version: latest
- name: Setup Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # 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