File tree Expand file tree Collapse file tree 5 files changed +95
-43
lines changed Expand file tree Collapse file tree 5 files changed +95
-43
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Pre-Commit
1+ name : Terraform Checks
22
33on :
44 push :
1111 - master
1212
1313env :
14- TERRAFORM_DOCS_VERSION : v0.16 .0
15- TFLINT_VERSION : v0.50.3
14+ TERRAFORM_DOCS_VERSION : v0.18 .0
15+ TFLINT_VERSION : v0.52.0
1616
1717jobs :
18+ test :
19+ name : Test
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Setup Terraform
23+ uses : hashicorp/setup-terraform@v3
24+ with :
25+ terraform_version : " 1.8.4"
26+
27+ - name : Initialize Terraform
28+ id : init
29+ run : terraform init -input=false
30+
31+ - name : Terraform Test
32+ id : fmt
33+ run : terraform test
34+
1835 collectInputs :
1936 name : Collect workflow inputs
37+ needs : test
2038 runs-on : ubuntu-latest
2139 outputs :
2240 directories : ${{ steps.dirs.outputs.directories }}
Original file line number Diff line number Diff line change 1+ name : Terraform Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - master
8+ pull_request :
9+ branches :
10+ - main
11+ - master
12+
13+ env :
14+ TERRAFORM_DOCS_VERSION : v0.18.0
15+
16+ jobs :
17+ generateDocs :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout repository
21+ uses : actions/checkout@v4
22+ with :
23+ ref : ${{ github.event.pull_request.head.ref }}
24+
25+ - name : Render and Push terraform docs for main and modules
26+ uses : terraform-docs/gh-actions@main
27+ with :
28+ working-dir : .
29+ git-push : true
30+ config-file : .terraform-docs.yaml
31+
32+ - name : Render and Push terraform docs for examples
33+ uses : terraform-docs/gh-actions@main
34+ with :
35+ working-dir : .
36+ git-push : true
37+ config-file : .terraform-docs-example.yaml
Original file line number Diff line number Diff line change 1+ formatter : " markdown table"
2+
3+ header-from : .header.md
4+ footer-from : " "
5+
6+ recursive :
7+ enabled : true
8+ path : examples
9+ include-main : false
10+
11+ output :
12+ file : " README.md"
13+ mode : replace
14+ template : |-
15+ <!-- BEGIN_TF_DOCS -->
16+ {{ .Content }}
17+ <!-- END_TF_DOCS -->
18+ {{- printf "\n" -}}
19+
20+ sort :
21+ enabled : true
22+ by : name
23+
24+ settings :
25+ anchor : true
26+ color : true
27+ default : true
28+ description : false
29+ escape : true
30+ hide-empty : false
31+ html : true
32+ indent : 2
33+ lockfile : true
34+ read-comments : true
35+ required : true
36+ sensitive : true
37+ type : true
Original file line number Diff line number Diff line change 11formatter : " markdown table"
22
3- version : " "
4-
53header-from : .header.md
64footer-from : " "
75
You can’t perform that action at this time.
0 commit comments