Skip to content

Commit

Permalink
add github actions for tf lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
umeshkumhar committed Mar 6, 2024
1 parent 39db886 commit 6a73cfe
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Terraform CI
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Terraform-Fmt-Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3

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

- name: Terraform Validate
id: validate
run: terraform validate -no-color

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


0 comments on commit 6a73cfe

Please sign in to comment.