Add workflow for Github Actions
This commit is contained in:
parent
01d568baf1
commit
4b8e7d9ba1
24
.github/workflow/terraform.yaml
vendored
Normal file
24
.github/workflow/terraform.yaml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
name: Terraform
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
terraform:
|
||||||
|
name: Validate Terraform
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Terraform
|
||||||
|
uses: hashicorp/setup-terraform@v1
|
||||||
|
- name: Terraform Format
|
||||||
|
run: terraform fmt -check -diff
|
||||||
|
- name: Terraform Init
|
||||||
|
run: terraform init
|
||||||
|
- name: Terraform Validate
|
||||||
|
run: terraform validate -no-color
|
Loading…
Reference in New Issue
Block a user