Skip to content

ci: add Terraform validation workflow - #848

Merged
Nitya-003 merged 1 commit into
Nitya-003:mainfrom
AnzalKhan16:feature/terraform-ci
Jul 29, 2026
Merged

ci: add Terraform validation workflow#848
Nitya-003 merged 1 commit into
Nitya-003:mainfrom
AnzalKhan16:feature/terraform-ci

Conversation

@AnzalKhan16

Copy link
Copy Markdown
Contributor

📌 Overview
Added a dedicated GitHub Actions workflow (terraform.yml) to automatically validate our Terraform infrastructure configurations. This workflow runs on pushes or pull requests involving files in the infrastructure/ directory. It ensures our Infrastructure as Code (IaC) uses consistent formatting via terraform fmt -check, initializes successfully using a credential-less backend (terraform init -backend=false), and is syntactically sound via terraform validate. The Terraform CLI version is locked to 1.5.7 to ensure consistency between local development and CI environments.

🛠️ Type of Change
[ ] ⛓️ Smart Contract (Solidity changes, Gas optimization)
[ ] 💻 Frontend (UI/UX, React components, Tailwind)
[ ] ⚙️ Backend (API routes, MongoDB schemas, Middleware)
[ ] 📄 Documentation (README, Roadmap updates)
[x] 🧪 Testing (CI/CD Pipeline, DevOps & Infrastructure as Code)

🔗 Related Issue
Closes #847

🧪 Testing & Verification
Smart Contracts: npx hardhat test passed? (NA)
Frontend: Verified on Mobile/Desktop responsiveness? (NA)
Integration: Verified ethers.js connectivity with local/testnet node? (NA)
Terraform: Workflow successfully triggered on file modification and executes fmt/init/validate without needing AWS credentials? (Yes)

📸 Screenshots / Demos
(N/A - Infrastructure workflow updates only)

✅ PR Checklist
[x] My code follows the project's style guidelines.
[x] I have commented my code, particularly in complex areas.
[x] I have updated the documentation accordingly.
[x] My changes generate no new warnings.

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

@AnzalKhan16 is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nitya-003 Nitya-003 added enhancement New feature or request gssoc:approved gssoc'26 approved level:intermediate 35 pts for contributor 20 pts for mentor quality:clean *1.2 for contributor +5 pts for mentor type:feature labels Jul 29, 2026
@Nitya-003
Nitya-003 merged commit a2a1bab into Nitya-003:main Jul 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gssoc:approved gssoc'26 approved level:intermediate 35 pts for contributor 20 pts for mentor quality:clean *1.2 for contributor +5 pts for mentor type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add Terraform formatting and validation checks

2 participants