terraform-digitalocean-spoke/.github/workflows/terraform.yml
2023-01-28 16:06:07 -05:00

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