feat: add cloudfront support #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
# Trigger the workflow on pull request, | |
# but only for the main branch | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tflint-bloom-instance: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: ./bloom-instance | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout source code | |
- uses: actions/cache@v3 | |
name: Cache plugin dir | |
with: | |
path: ~/.tflint.d/plugins | |
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }} | |
- uses: terraform-linters/setup-tflint@v3 | |
name: Setup TFLint | |
with: | |
tflint_version: v0.44.1 | |
- name: Show version | |
run: tflint --version | |
- name: Init TFLint | |
run: tflint --init | |
- name: Run TFLint | |
run: tflint -f compact |