Skip to content

Add .circleci/config.yml #51

Add .circleci/config.yml

Add .circleci/config.yml #51

name: Terraform linting pipeline
on: [push]
jobs:
pipeline:
name: Run Terraform
runs-on: ubuntu-latest
defaults:
run:
working-directory: terraform
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.2.2
- name: terraform_format
run: terraform fmt -recursive -check -diff
- name: terraform_init
run: terraform init -backend=false
- name: terraform_validate
run: terraform validate