Gamify icon indicating copy to clipboard operation
Gamify copied to clipboard

ELUSoC_2026 — Add CI lint and build validation workflow for all workspaces

Open Babin123456 opened this issue 5 months ago • 3 comments

Problem

The Gamify repository currently has a deploy.yml workflow that only runs on pushes to main to deploy to Cloudflare. There is no CI workflow that validates code quality (linting) or build correctness on pull requests or feature branches.

Current Behavior

  • Pull requests merge without any automated lint or build checks.
  • A broken client build or lint error can silently land on main and break the deployment pipeline.
  • Contributors have no automated feedback on code quality before a maintainer reviews their PR.

Why This Improvement Is Needed

  • Catches regressions early — broken builds are flagged before they reach reviewers.
  • Enforces the ESLint rules already configured in client/eslint.config.js.
  • Improves contributor experience: authors receive instant CI feedback on their branches.
  • Follows open-source best practices for monorepo projects.

Proposed Solution

Add a new .github/workflows/ci.yml workflow that:

  1. Runs on every push (all branches) and every PR targeting main.
  2. Installs dependencies and runs npm run lint for the client workspace.
  3. Runs npm run build for the client to catch Vite build failures.
  4. Runs npm run lint --if-present for server and bot workspaces.
  5. Uses actions/setup-node@v4 with npm caching per workspace.

Expected Outcome

  • Every PR receives automated lint and build status checks.
  • Maintainers can require the CI job to pass before merging.
  • Contributors see immediate feedback on their branches.

Additional Notes

  • The workflow uses npm ci (not npm install) for reproducible installs.
  • Each workspace (client, server, bot) runs as an independent parallel job.
  • No secrets are required for lint/build — the workflow is safe for fork PRs.

Babin123456 avatar Jun 27 '26 11:06 Babin123456

Thank you for raising this issue!

We'll review it as soon as possible. We truly appreciate your contributions! ✨

Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊

github-actions[bot] avatar Jun 27 '26 11:06 github-actions[bot]

Hi, I'd like to work on this issue. I'll add a .github/workflows/ci.yml that runs lint and build for the client workspace and lint for server/bot on every push and PR, as outlined above. Could you please assign it to me?

/assign /claim

anshul23102 avatar Jun 29 '26 07:06 anshul23102

Hi,could you assign this issue to me?

Keshavsspppp avatar Jul 03 '26 22:07 Keshavsspppp