Skip to content
This repository was archived by the owner on Apr 5, 2026. It is now read-only.

Commit 325a8e1

Browse files
committed
chore: Add check_terraform job
1 parent 2879464 commit 325a8e1

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Ensure Terraform code is properly formatted and valid
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- infrastructure/**/*.tf
7+
push:
8+
9+
jobs:
10+
check_terraform:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out the repository code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up the Terraform CLI
18+
uses: hashicorp/setup-terraform@v3
19+
20+
- name: Initialize the Terraform working directory
21+
run: terraform init -backend=false
22+
23+
- name: Verify that all Terraform files are properly formatted
24+
run: terraform fmt -recursive -check
25+
26+
- name: Validate the Terraform configuration files
27+
run: terraform validate
28+

0 commit comments

Comments
 (0)