Skip to content

Add simple CI job

Add simple CI job #2

Workflow file for this run

name: CI
on:
pull_request:
branches: [ "main" ]
# Allow manual execution from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "~1.9.0"
- name: Check code formatting
run: terraform fmt -recursive
- name: Validate configuration
run: |
cd environments/prod
terraform init
terraform validate
- name: Verify execution viability
run: |
terraform plan