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

View File

@@ -1,4 +1,4 @@
# terraform-render-bootstrap [![Sponsors](https://img.shields.io/github/sponsors/poseidon?logo=github)](https://github.com/sponsors/poseidon) [![Twitter](https://img.shields.io/badge/follow-news-1da1f2?logo=twitter)](https://twitter.com/typhoon8s)
# terraform-render-bootstrap [![Workflow](https://github.com/poseidon/terraform-render-bootstrap/actions/workflows/test.yaml/badge.svg)](https://github.com/poseidon/terraform-render-bootstrap/actions/workflows/test.yaml?query=branch%3Amain) [![Sponsors](https://img.shields.io/github/sponsors/poseidon?logo=github)](https://github.com/sponsors/poseidon) [![Twitter](https://img.shields.io/badge/follow-news-1da1f2?logo=twitter)](https://twitter.com/typhoon8s)
`terraform-render-bootstrap` is a Terraform module that renders TLS certificates, static pods, and manifests for bootstrapping a Kubernetes cluster.