Validate TF files #63
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: Validate TF files | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# Run periodically to make sure that everything is still dandy | |
- cron: "0 0 * * *" | |
jobs: | |
verify_and_plan: | |
name: Validate Terraform modules and show plan | |
permissions: | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup environment | |
uses: ./.github/actions/setup-env | |
- name: Validate TF | |
run: make tf-validate | |
- name: Validate TF style | |
run: make tf-validate-style | |
- name: Show TF plan | |
run: make tf-plan |