Skip to content

Merge pull request #63 from terraform-module/renovate/master-pre-comm… #146

Merge pull request #63 from terraform-module/renovate/master-pre-comm…

Merge pull request #63 from terraform-module/renovate/master-pre-comm… #146

Workflow file for this run

name: linter
on:
push:
branches: [ master ]
pull_request:
env:
# renovate: datasource=github-releases depName=terraform-linters/tflint
TFLINT_VERSION: v0.34.0
jobs:
tflint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
name: Checkout source code
- uses: actions/cache@v3
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/setup-tflint@v3
name: Setup TFLint
with:
tflint_version: ${{ env.RENOVATE_CONFIG_FOLDER }}
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
- name: Run TFLint
run: tflint -f compact