File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
command : |
13
13
find . -type f -name "*.tf" -exec dirname {} \;|sort -u | while read m; do (terraform validate -check-variables=false "$m" && echo "√ $m") || exit 1 ; done
14
14
- run :
15
- name : check if all tf files are formatted (terraform fmt)
15
+ name : Check: Terraform formatting (terraform fmt)
16
16
command : |
17
17
if [ `terraform fmt --list=true -diff=true -write=false | tee format-issues | wc -c` -ne 0 ]; then
18
18
echo "Some terraform files need be formatted, run 'terraform fmt' to fix"
30
30
export PATH=/usr/local/tflint/bin:$PATH
31
31
install tflint /usr/local/tflint/bin
32
32
- run :
33
- name : " tflint check"
33
+ # Not supporting modules from registry ??
34
+ name : " Check: tflint"
34
35
command : |
35
- terraform init
36
+ echo "Initializing terraform..."
37
+ terraform init -input=false
38
+ echo "Running tflint..."
39
+ /usr/local/tflint/bin/tflint --version
36
40
/usr/local/tflint/bin/tflint
37
41
38
42
workflows :
You can’t perform that action at this time.
0 commit comments