Skip to content

feat: add basic CI

feat: add basic CI #3

Workflow file for this run

name: Terraform
on:
pull_request:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.path }}
strategy:
matrix:
path: [".", "examples/nat-gateway"]
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
- run: terraform fmt -check -recursive
- run: terraform init -backend=false
- run: terraform validate