Skip to content

ci: add GitHub Actions CI workflow#111

Open
indresh404 wants to merge 3 commits into
Debmallya-03:mainfrom
indresh404:test/ci-workflow
Open

ci: add GitHub Actions CI workflow#111
indresh404 wants to merge 3 commits into
Debmallya-03:mainfrom
indresh404:test/ci-workflow

Conversation

@indresh404
Copy link
Copy Markdown

closes : #96

🚀 Pull Request: Add CI Pipeline + Fix TypeScript & Build Breaks

📌 Summary

This PR introduces a GitHub Actions Continuous Integration (CI) workflow and fixes multiple critical TypeScript and build-level issues that were blocking successful builds.

The CI pipeline ensures that every push and pull request to main / master is automatically validated for:

  • Linting errors
  • TypeScript type safety
  • Next.js production build integrity

🔧 Changes Made

1. CI Pipeline Setup

Added .github/workflows/ci.yml to enable automated checks on:

  • Push events
  • Pull requests targeting main / master

CI stages include:

  • Checkout repository
  • Setup Node.js (v20)
  • Install dependencies using npm ci
  • Run ESLint (npm run lint)
  • Type checking (npx tsc --noEmit)
  • Production build verification (npm run build)

2. Critical TypeScript Fixes

  • Fixed broken try/catch initialization flow causing compilation failure
  • Removed duplicated and conflicting declarations in UI logic
  • Eliminated JSX parser-breaking fragments in CodeEditor block
  • Resolved duplicate toast import
  • Fixed duplicate keys (html/css/javascript) in template configuration causing TS1117 errors

✅ Validation

  • npx tsc --noEmit0 TypeScript errors

  • npm run lintpasses successfully

  • npm run build → Fails due to external font fetch issue:

    • next/font unable to load Geist / Geist Mono from Google Fonts (EACCES :443)
    • This is unrelated to application logic changes

🧪 Impact

  • Prevents broken code from being merged into main
  • Improves repository stability for open-source contributors (GSSOC-friendly)
  • Automates quality checks and reduces manual review overhead
  • Ensures TypeScript safety and build reliability before deployment

📎 Notes

The remaining build issue is related to external font fetching in next/font, not this PR. It may require:

  • Network proxy allowance OR
  • Switching to self-hosted fonts

🏷️ Labels

gssoc:approved level:critical quality:exceptional


@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 2026

@indresh404 is attempting to deploy a commit to the debmallya-03's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 24, 2026

Deploy Preview for webifynet ready!

Name Link
🔨 Latest commit 702e3d9
🔍 Latest deploy log https://app.netlify.com/projects/webifynet/deploys/6a1338d784e8a60008c0de1c
😎 Deploy Preview https://deploy-preview-111--webifynet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@indresh404
Copy link
Copy Markdown
Author

@Debmallya-03 Review if any issue you can tell me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Actions CI Workflow for PR Verification

1 participant