19 lines
380 B
YAML
19 lines
380 B
YAML
name: terraform
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
jobs:
|
|
terraform:
|
|
name: Terraform
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: hashicorp/setup-terraform@v2
|
|
with:
|
|
terraform_version: 1.3.x
|
|
- run: terraform fmt -check -recursive
|
|
- run: terraform init
|
|
- run: terraform validate
|