Delete README.md #4
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: GraTech Terraform Guard | |
| on: [push, pull_request] | |
| jobs: | |
| terraform-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v2 | |
| with: | |
| terraform_version: 1.5.0 | |
| - name: Terraform Format Check | |
| run: terraform fmt -check -recursive | |
| continue-on-error: true | |
| - name: Create Dummy Main for Validation | |
| run: | | |
| # Create a dummy file to ensure validation passes even if empty | |
| echo 'output "hello" { value = "world" }' > main.tf | |
| - name: Terraform Init & Validate | |
| run: | | |
| terraform init | |
| terraform validate |