mirror of
https://github.com/outbackdingo/terraform-libvirt-talos.git
synced 2026-01-27 10:20:31 +00:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: Lint
|
|
on: [push]
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Cache the plugins directory
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.tflint.d/plugins
|
|
key: tflint-${{ hashFiles('.tflint.hcl') }}
|
|
- uses: terraform-linters/setup-tflint@v6
|
|
name: Setup
|
|
with:
|
|
# see https://github.com/terraform-linters/tflint/releases
|
|
# renovate: datasource=github-releases depName=terraform-linters/tflint
|
|
tflint_version: v0.59.1
|
|
- name: Init
|
|
run: tflint --init
|
|
env:
|
|
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
- name: Lint
|
|
run: tflint --format compact
|
|
fmt:
|
|
name: terraform fmt check
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: terraform fmt check
|
|
run: terraform fmt -check -diff
|