Skip to content

Add github actions for tf lint check #2

Add github actions for tf lint check

Add github actions for tf lint check #2

Workflow file for this run

name: Terraform CI
defaults:
run:
working-directory: ${{ env.tf_actions_working_dir }}

Check failure on line 4 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / Terraform CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 4, Col: 24): Unrecognized named-value: 'env'. Located at position 1 within expression: env.tf_actions_working_dir
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