Skip to content

Commit

Permalink
ci: workflow to validate tf helm
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabNeu authored and sydrawat01 committed Nov 6, 2023
1 parent 529a3ce commit d8b9e9f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/tf-helm-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: TF for Helm

on:
workflow_dispatch:
pull_request:
branches: [master]

jobs:
tf_helm_validate:
runs-on: ubuntu-latest
environment: ${{ vars.ENVIRONMENT }}
name: Validate TF Helm
steps:
- name: Checking out the terraform code
uses: actions/checkout@v3

- name: Setup `Terraform`
uses: hashicorp/setup-terraform@v2

- name: Terraform fmt
id: fmt
run: terraform fmt -check
continue-on-error: true

- name: Terraform Init
id: init
run: terraform init

- name: Terraform Validate
id: validate
run: terraform validate
2 changes: 1 addition & 1 deletion example.tfvars
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
namespace = ""
timeout =
timeout = 600

0 comments on commit d8b9e9f

Please sign in to comment.