Skip to content

Add CI workflow, update README and scripts, and add unit tests for @openchat/lib#17

Draft
DevMuhammed3 wants to merge 2 commits intomainfrom
codex/locate-capabilities
Draft

Add CI workflow, update README and scripts, and add unit tests for @openchat/lib#17
DevMuhammed3 wants to merge 2 commits intomainfrom
codex/locate-capabilities

Conversation

@DevMuhammed3
Copy link
Copy Markdown
Owner

Motivation

  • Add a basic GitHub Actions CI pipeline to run install, lint, build and tests on pushes and pull requests.
  • Add unit tests for core validation and utility functions in @openchat/lib to improve coverage and catch regressions.
  • Simplify and modernize the README and workspace scripts to reflect pnpm workspace usage and Node 20 requirements.

Description

  • Add .github/workflows/ci.yml to run pnpm install, pnpm lint, pnpm build, and pnpm test on pushes and PRs using Node 20 and pnpm setup.
  • Update the root package.json to add a workspace-aware test script and expose dev:all and other convenience scripts.
  • Update packages/lib/package.json to include a test script (tsx --test src/**/*.test.ts) and a dev tweak.
  • Add unit tests getAvatarUrl.test.ts and validations/auth.test.ts under packages/lib/src and refresh README content with quick start, scripts, env, and Prisma commands.

Testing

  • Ran pnpm test across the workspace which executed the 5 new unit tests in packages/lib and all tests passed.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open-chat-frontend Ready Ready Preview, Comment Mar 16, 2026 6:51pm

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant