[Github action] Rebuild resource collection index #65
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: terraform lint | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
paths: | |
- '**.tf' | |
- '**.tfvars' | |
- '**.tf.json' | |
- '**.tfvars.json' | |
# Manually triggered using GitHub's UI | |
workflow_dispatch: | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: scripts/terraform-fmt -check | |
validate: | |
name: validate ${{matrix.env}} | |
strategy: | |
matrix: | |
env: | |
- env/production | |
- env/testing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: terraform init -backend=false | |
working-directory: ${{matrix.env}} | |
- run: terraform validate | |
working-directory: ${{matrix.env}} |