Adds Terraform fmt/validate via GitHub Actions

This commit is contained in:
Nemo 2019-11-14 17:27:54 +05:30
parent 39f5fb2aa9
commit 3bd3d1f54c
1 changed files with 20 additions and 0 deletions

20
.github/workflows/terraform.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: 'Terraform GitHub Actions'
on:
- pull_request
jobs:
terraform:
name: 'Terraform'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Terraform Format'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.13
tf_actions_subcommand: 'fmt'
- name: 'Terraform Validate'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.13
tf_actions_subcommand: 'validate'