Skip to content

Commit

Permalink
Fix ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
heydbut committed Aug 29, 2023
1 parent 64037c3 commit 75c37e5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Setup Terraform Lint
uses: terraform-linters/setup-tflint@v1
with:
tflint_version: v0.34.1
tflint_version: v0.47.0

- name: Terraform Init
id: init
Expand All @@ -56,20 +56,17 @@ jobs:
- name: Lint root module
run: |
tflint --config ${{ github.workspace }}/.tflint.hcl ${{ github.workspace }}
tflint --config ${{ github.workspace }}/.tflint.hcl --chdir ${{ github.workspace }}
- name: Lint modules directory in a loop
run: |
for m in $(ls -1d modules/*/)
do
tflint \
--config ${{ github.workspace }}/.tflint.hcl \
${{ github.workspace }}/${m}
tflint --config ${{ github.workspace }}/.tflint.hcl --chdir ${{ github.workspace }}/${m}
done
- name: Lint examples directory in a loop
run: |
for m in $(ls -1d examples/*/)
do
tflint \
--config ${{ github.workspace }}/.tflint.hcl \
${{ github.workspace }}/${m}
terraform -chdir=${{ github.workspace }}/${m} init
tflint --config ${{ github.workspace }}/.tflint.hcl --chdir ${{ github.workspace }}/${m} --minimum-failure-severity=error
done

0 comments on commit 75c37e5

Please sign in to comment.