Update GCP runner, proxy, prometheus, and node-exporter images to ver… #588
This file contains hidden or 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: Terraform Validate | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| terraform-validate: | |
| name: Terraform Validate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "~1.3" | |
| - name: Terraform Format Check | |
| run: terraform fmt -check -recursive | |
| - name: Terraform Init | |
| run: terraform init -backend=false | |
| - name: Terraform Validate | |
| run: terraform validate | |
| - name: Validate Examples | |
| run: | | |
| for example_dir in examples/*/; do | |
| if [ -d "$example_dir" ] && [ -f "$example_dir/main.tf" ]; then | |
| echo "Validating example: $example_dir" | |
| cd "$example_dir" | |
| terraform init -backend=false | |
| terraform validate | |
| cd - > /dev/null | |
| fi | |
| done | |
| # Validate example modules | |
| for module_dir in examples/*/modules/*/; do | |
| if [ -d "$module_dir" ] && [ -f "$module_dir/main.tf" ]; then | |
| echo "Validating example module: $module_dir" | |
| cd "$module_dir" | |
| terraform init -backend=false | |
| terraform validate | |
| cd - > /dev/null | |
| fi | |
| done |