Skip to content

Commit

Permalink
Add CI job for linting + validating Terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh authored Jan 29, 2025
1 parent ed70fa8 commit 5ac1a1c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions {{ cookiecutter.project_slug }}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,23 @@ jobs:
DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django
DJANGO_CELERY_BROKER_URL: amqp://localhost:5672/
DJANGO_MINIO_STORAGE_URL: http://minioAccessKey:minioSecretKey@localhost:9000/django-storage-testing
terraform:
runs-on: ubuntu-latest
defaults:
run:
working-directory: terraform
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Terraform
uses: hashicorp/setup-terraform@v3

- name: Lint Terraform code
run: terraform fmt -check -diff -recursive

- name: Initialize Terraform (offline only)
run: terraform init -backend=false

- name: Validate Terraform code
run: terraform validate

0 comments on commit 5ac1a1c

Please sign in to comment.