From 2b579bb4f3231371f1f2d4f293d8c9448089dd9e Mon Sep 17 00:00:00 2001 From: Niels ten Boom Date: Thu, 23 Jul 2020 14:39:16 +0200 Subject: [PATCH] Add lint workflow --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5d59499 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +name: Lint +on: [push, pull_request] + +jobs: + tflint: + name: TFLint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: TFLint + uses: docker://wata727/tflint + + fmt: + name: Code Format + runs-on: ubuntu-latest + container: + image: hashicorp/terraform:latest + steps: + - uses: actions/checkout@master + - run: terraform fmt --recursive -check=true + + docs: + name: Docs + runs-on: macos-latest + steps: + - uses: actions/checkout@master + - name: Install Deps + run: brew update && brew install pre-commit terraform-docs terraform + - name: Check Docs + run: pre-commit run --show-diff-on-failure --all-files terraform_docs