-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (34 loc) · 938 Bytes
/
lint.yml
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:
push:
branches-ignore:
- main
jobs:
validate:
runs-on: ubuntu-latest
name: Validate terraform configuration
strategy:
fail-fast: false
matrix:
path: ["cg_space", "clamav", "database", "domain", "redis", "s3", "egress_proxy"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: terraform validate ${{ matrix.path }}
uses: dflook/terraform-validate@v1
with:
path: ${{ matrix.path }}
fmt-check:
runs-on: ubuntu-latest
name: Check formatting of terraform files
strategy:
fail-fast: false
matrix:
path: ["cg_space", "clamav", "database", "domain", "redis", "s3", "egress_proxy"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: terraform fmt ${{ matrix.path }}
uses: dflook/terraform-fmt-check@v1
with:
path: ${{ matrix.path }}