Skip to content

chore: create terraform/ directory #4

chore: create terraform/ directory

chore: create terraform/ directory #4

Workflow file for this run

name: terraform
on:
push:
branches:
- main
pull_request:
jobs:
terraform-fmt:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set $TERRAFORM_VERSION
working-directory: "./terraform"
run: echo "TERRAFORM_VERSION=$(cat .terraform-version)" >> "$GITHUB_ENV"
- name: Setup Terraform
uses: hashicorp/[email protected]
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
- name: Run terraform fmt
working-directory: "./terraform"
run: terraform fmt -check -recursive