-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 935 Bytes
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Lint
on: pull_request
jobs:
terraform-format:
name: Terraform Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.9.5"
- name: Check formatting
run: terraform fmt -recursive -check
terraform-docs:
name: Terraform Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: terraform-docs/[email protected]
with:
find-dir: .
fail-on-diff: true
config-file: .terraform-docs.yaml
# these are set in the configuration file
output-method: ""
output-file: ""
output-format: ""
template: ""
yaml:
name: YAML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
uses: karancode/[email protected]