Add SNAPSHOT_IDENTIFIER variable to GitHub Actions CI #211
Workflow file for this run
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: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
jobs: | |
tflint: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout source code | |
- uses: actions/cache@v2 | |
name: Cache plugin dir | |
with: | |
path: ~/.tflint.d/plugins | |
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }} | |
- uses: terraform-linters/setup-tflint@v1 | |
name: Setup TFLint | |
with: | |
tflint_version: v0.51.1 | |
- name: Show version | |
run: tflint --version | |
- name: TFLint - daac module | |
run: tflint --chdir=daac | |
- name: TFLint - dashboard module | |
run: tflint --chdir=dashboard | |
- name: TFLint - rds module | |
run: tflint --chdir=rds | |
- name: TFLint - workflows module | |
run: tflint --chdir=workflows |