-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (47 loc) · 1.38 KB
/
terraform-examples.yml
File metadata and controls
52 lines (47 loc) · 1.38 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Check Terraform examples
on:
pull_request:
types: [opened, reopened, synchronize, closed]
paths:
- ".github/workflows/**"
- "terraform/**"
jobs:
terraform-check-tflint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v6
with:
cache: true
- name: Show version
run: tflint --version
# - name: help
# run: tflint -help
- name: Run
run: tflint --chdir=terraform --recursive
terraform-check-fmt:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Terraform
uses: hashicorp/setup-terraform@v2
- name: Check Terraform formatting
run: |
bash terraform/repo-scripts/check-terraform-fmt.sh terraform
terraform-check-variables-tailscale-install-scripts:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
# - name: tree
# working-directory: terraform
# run: |
# apt-get -y update
# apt-get -y install tree
# tree -a
- name: Check variables-tailscale-install-scripts.tf files
run: |
bash terraform/repo-scripts/check-variables-tailscale-install-scripts.sh terraform