chore(deps): bump @babel/traverse from 7.20.1 to 7.23.2 #2050
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: Terraform | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
defaults: | |
run: | |
working-directory: terraform | |
jobs: | |
tflint: | |
name: Lint and document terraform | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref || github.ref_name }} | |
- name: Cache plugin dir | |
uses: actions/cache@v3 | |
with: | |
path: ~/.tflint.d/plugins | |
key: ${{ runner.os }}-tflint-${{ hashFiles('.tflint.hcl') }} | |
- name: Setup TFLint | |
uses: terraform-linters/setup-tflint@v3 | |
with: | |
github_token: ${{ secrets.TFLINT_GITHUB_TOKEN }} | |
- name: Show version | |
run: tflint --version | |
- name: Init TFLint | |
run: tflint --init | |
env: | |
GITHUB_TOKEN: ${{ secrets.TFLINT_GITHUB_TOKEN }} | |
- name: Run TFLint | |
run: tflint -f compact | |
- name: Check/update terraform-docs | |
uses: terraform-docs/gh-actions@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
with: | |
working-dir: terraform | |
fail-on-diff: 'true' | |
git-push: ${{ github.ref_name == 'main' && github.event_name == 'push' && 'false' || 'true' }} | |
git-commit-message: 'docs(terraform): update README' |