chore: check if fmt fails #8
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: k8s app | |
on: | |
workflow_dispatch: ~ | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
jobs: | |
terraform_fmt: | |
runs-on: ubuntu-20.04 | |
name: "Check terraform language style conventions" | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
terraform fmt --check --diff | |
terraform_validation: | |
runs-on: ubuntu-20.04 | |
name: "Validate terraform configuration" | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
terraform init | |
terraform validate | |
test: | |
runs-on: ubuntu-20.04 | |
name: "Tests terraform" | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
terraform init | |
terraform test |