File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Terraform Validation"
2+ on :
3+ - push
4+ jobs :
5+ example :
6+ name : " Terraform Actions"
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : " Checkout"
10+ uses : actions/checkout@master
11+ - name : " Terraform Format"
12+ uses : hashicorp/terraform-github-actions@master
13+ with :
14+ tf_actions_version : 0.11.0
15+ tf_actions_subcommand : " fmt"
16+ tf_actions_working_dir : " ."
17+ tf_actions_comment : true
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ - name : " Terraform Init"
21+ uses : hashicorp/terraform-github-actions@master
22+ with :
23+ tf_actions_version : 0.11.0
24+ tf_actions_subcommand : " init"
25+ tf_actions_working_dir : " ."
26+ tf_actions_comment : true
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ - name : " Terraform Validate"
30+ uses : hashicorp/terraform-github-actions@master
31+ with :
32+ tf_actions_version : 0.11.0
33+ tf_actions_subcommand : " validate"
34+ tf_actions_working_dir : " ."
35+ tf_actions_comment : true
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments