Skip to content

Commit d4f7c17

Browse files
committed
CirclCI improvements
1 parent 586c023 commit d4f7c17

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.circleci/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
command: |
1313
find . -type f -name "*.tf" -exec dirname {} \;|sort -u | while read m; do (terraform validate -check-variables=false "$m" && echo "√ $m") || exit 1 ; done
1414
- run:
15-
name: check if all tf files are formatted (terraform fmt)
15+
name: Check: Terraform formatting (terraform fmt)
1616
command: |
1717
if [ `terraform fmt --list=true -diff=true -write=false | tee format-issues | wc -c` -ne 0 ]; then
1818
echo "Some terraform files need be formatted, run 'terraform fmt' to fix"
@@ -30,9 +30,13 @@ jobs:
3030
export PATH=/usr/local/tflint/bin:$PATH
3131
install tflint /usr/local/tflint/bin
3232
- run:
33-
name: "tflint check"
33+
# Not supporting modules from registry ??
34+
name: "Check: tflint"
3435
command: |
35-
terraform init
36+
echo "Initializing terraform..."
37+
terraform init -input=false
38+
echo "Running tflint..."
39+
/usr/local/tflint/bin/tflint --version
3640
/usr/local/tflint/bin/tflint
3741
3842
workflows:

0 commit comments

Comments
 (0)