diff --git a/.github/workflows/tf_cicd.yml b/.github/workflows/tf_cicd.yml index 488b6ed..ad3de48 100644 --- a/.github/workflows/tf_cicd.yml +++ b/.github/workflows/tf_cicd.yml @@ -40,6 +40,15 @@ jobs: uses: hashicorp/setup-terraform@v1 # TODO: Complete CI/CD Pipeline - + - name: terraform fmt + uses: dflook/terraform-fmt-check@v1 + id: fmt-check + with: + path: e_github_actions + + - name: Wrong formatting found + if: ${{ failure() && steps.fmt-check.outputs.failure-reason == 'check-failed' }} + run: echo "formatting check failed" +