diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml index 9de33f9..0fd755e 100644 --- a/.github/workflows/terraform.yaml +++ b/.github/workflows/terraform.yaml @@ -4,7 +4,9 @@ on: pull_request: branches: - master - types: [labeled, reopened, edited] + +env: + TF_VERSION: 0.12.29 jobs: terraform: @@ -17,10 +19,13 @@ jobs: - name: Setup Terraform uses: hashicorp/setup-terraform@v1 with: - terraform_version: 0.12.29 + terraform_version: ${{ env.TF_VERSION }} - name: Terraform Init run: terraform init - name: Terraform Format - run: terraform fmt -check \ No newline at end of file + run: terraform fmt -check + + - name: Terraform Validate + run: terraform validate \ No newline at end of file diff --git a/.gitignore b/.gitignore index 670be84..15349b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.terraform/ terraform.tfstate.backup terraform.tfstate