Skip to content

Phase 1: CI workflow, critical-path tests, and README clarity - #12

Merged
fraineralex merged 1 commit into
mainfrom
cursor/ci-tests-readme-8b3a
Sep 18, 2026
Merged

fraineralex merged 1 commit into
mainfrom
cursor/ci-tests-readme-8b3a

Conversation

@fraineralex

Copy link
Copy Markdown
Owner

Summary

Brings Chatify to a minimal senior bar for CI and testing without introducing secrets or invented metrics.

CI (.github/workflows/ci.yaml)

  • Runs on pull requests and pushes to main
  • Steps: pnpm install → lint → typecheck → test → build
  • Pinned to pnpm 9.15.4 via packageManager (avoids pnpm 11+ ERR_PNPM_IGNORED_BUILDS issues)
  • Full install (with optional deps) so sharp native bindings are available for server tests

Workspace scripts (root package.json + pnpm-workspace.yaml)

  • pnpm run lint — ESLint on client + server source
  • pnpm run typecheck — TypeScript --noEmit
  • pnpm run test — server + client unit tests
  • pnpm run build — compile server + production client bundle

Tests added

Area File What it covers
Auth boundary server/src/middlewares/auth.test.ts Socket middleware rejects missing/invalid JWT; accepts valid token
Message handler server/src/controllers/socket.test.ts Text newMessage persists to DB and emits chat_message
Client utils client/src/utils/chat.test.ts Link detection in message text
Client utils client/src/utils/isOneEmoji.test.ts Single-emoji message detection

README

  • Problem statement and architecture diagram (REST + Socket.io realtime path)
  • Stack table and consolidated quick start using pnpm workspace commands
  • CI badge added alongside existing deployment badge

Local verification

All steps pass locally:

pnpm install
pnpm run lint
pnpm run typecheck
pnpm run test
pnpm run build

Notes

  • No secrets added; tests use mocked env vars only.
  • If GitHub Actions is blocked by account billing (as with other repos in this org), local green checks above satisfy Phase 1 scope — the workflow is ready once Actions is enabled.
Open in Web Open in Cursor 

- Add pnpm workspace with lint, typecheck, test, and build scripts
- Add GitHub Actions CI on pull requests and main pushes
- Test socket auth boundary and text message persistence/broadcast
- Test client link parsing and emoji detection utilities
- Refresh README with problem statement, architecture, stack, and quick start

Co-authored-by: Frainer Encarnación <fraineralex@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying chatify with  Cloudflare Pages  Cloudflare Pages

Latest commit: f33e15c
Status: ✅  Deploy successful!
Preview URL: https://3f86dfe2.chatify-qny.pages.dev
Branch Preview URL: https://cursor-ci-tests-readme-8b3a.chatify-qny.pages.dev

View logs

@fraineralex
fraineralex marked this pull request as ready for review September 18, 2026 05:11
@fraineralex
fraineralex merged commit f4a78ef into main Sep 18, 2026
1 of 2 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@fraineralex
fraineralex deleted the cursor/ci-tests-readme-8b3a branch September 18, 2026 05:11
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.

2 participants