π Problem Statement
The DevCard monorepo has a .github/workflows/ directory but no CI workflow that runs on pull requests. This means:
- No TypeScript compilation check β a PR can introduce type errors in
apps/backend/ (Fastify + TypeScript) or apps/web/ (SvelteKit) that only surface when someone pulls and builds locally
- No Prisma migration validation β a malformed migration file in
packages/shared/ or apps/backend/ won't be caught until deployment
- No lint enforcement β the project has
eslint and TypeScript configured but these are never run automatically in CI
With 57 open issues and 29 PRs, this is a real risk to code quality.
Proposed Fix
# .github/workflows/ci.yml
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
backend:
name: Backend β TypeCheck & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with: { version: 9 }
- uses: actions/setup-node@v4
with: { node-version: '20', cache: 'pnpm' }
- run: pnpm install --frozen-lockfile
- name: TypeScript check (backend)
run: cd apps/backend && pnpm exec tsc --noEmit
- name: ESLint (backend)
run: cd apps/backend && pnpm exec eslint src/ --max-warnings 0
web:
name: Web β Build Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with: { version: 9 }
- uses: actions/setup-node@v4
with: { node-version: '20', cache: 'pnpm' }
- run: pnpm install --frozen-lockfile
- name: SvelteKit build
run: cd apps/web && pnpm run build
shared:
name: Shared Types β TypeCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with: { version: 9 }
- uses: actions/setup-node@v4
with: { node-version: '20', cache: 'pnpm' }
- run: pnpm install --frozen-lockfile
- name: TypeScript check (shared)
run: cd packages/shared && pnpm exec tsc --noEmit
Files to Create
| File |
Purpose |
.github/workflows/ci.yml |
New CI workflow |
Suggested labels: enhancement, CI/CD, level: beginner
I would like to work on this. Could you please assign it to me?
π Problem Statement
The DevCard monorepo has a
.github/workflows/directory but no CI workflow that runs on pull requests. This means:apps/backend/(Fastify + TypeScript) orapps/web/(SvelteKit) that only surface when someone pulls and builds locallypackages/shared/orapps/backend/won't be caught until deploymenteslintand TypeScript configured but these are never run automatically in CIWith 57 open issues and 29 PRs, this is a real risk to code quality.
Proposed Fix
Files to Create
.github/workflows/ci.ymlSuggested labels:
enhancement,CI/CD,level: beginnerI would like to work on this. Could you please assign it to me?