-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1.05 KB
/
Copy pathchecks.yaml
File metadata and controls
42 lines (34 loc) · 1.05 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
name: Checks
on:
push:
env:
TF_VERSION: "1.10.0"
TFLINT_VERSION: "0.53.0"
TFDOCS_VERSION: "0.19.0"
PYTHON_VERSION: "3.13"
jobs:
precommit:
name: Run precommit-hooks
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
name: Setup terraform
with:
terraform_version: ~> ${{ env.TF_VERSION }}
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: v${{ env.TFLINT_VERSION }}
- name: Setup terraform-docs
run: |
curl -sSLo ./terraform-docs.tar.gz https://terraform-docs.io/dl/v${TFDOCS_VERSION}/terraform-docs-v${TFDOCS_VERSION}-$(uname)-amd64.tar.gz
tar -xzf terraform-docs.tar.gz
chmod +x terraform-docs
sudo mv terraform-docs /usr/bin/terraform-docs
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: pre-commit/action@v3.0.1