Skip to content

Commit

Permalink
Add TF Validate (#5)
Browse files Browse the repository at this point in the history
* Add TF Validate

* remove labled

* remove labled
  • Loading branch information
naikajah authored Sep 24, 2020
1 parent 802bf4f commit 504cde8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
pull_request:
branches:
- master
types: [labeled, reopened, edited]

env:
TF_VERSION: 0.12.29

jobs:
terraform:
Expand All @@ -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
run: terraform fmt -check

- name: Terraform Validate
run: terraform validate
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.terraform/
terraform.tfstate.backup
terraform.tfstate

0 comments on commit 504cde8

Please sign in to comment.