Skip to content

Commit

Permalink
Create terraform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
den-vasyliev authored Jan 27, 2024
1 parent b69963f commit 56b2942
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push, pull_request]

jobs:
terraform:
name: 'Terraform Format and Plan'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: '1.0.0'

- name: Terraform Format
run: terraform fmt -check

- name: Terraform Init
run: terraform init

- name: Terraform Validate
run: terraform validate

- name: Terraform Plan
run: terraform plan

0 comments on commit 56b2942

Please sign in to comment.