Add Terraform fmt GitHub Action and dependabot config

* Run terraform fmt on pull requests and merge to main
* Show workflow status in README
* Add dependabot.yaml to keep GitHub Actions updated
This commit is contained in:
Dalton Hubble
2022-08-01 09:45:38 -07:00
parent b7136c94c2
commit 13e40a342b
3 changed files with 28 additions and 1 deletions

6
.github/dependabot.yaml vendored Normal file
View File

@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

21
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: test
on:
push:
branches:
- main
pull_request:
jobs:
terraform:
name: fmt
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.5
- name: fmt
run: terraform fmt -check -diff -recursive