ci: add unit and integration test job#24
Conversation
Add a Turbo test task and root pnpm test script, then run tests in CI after lint/typecheck. PR builds use turbo --affected; main runs the full suite. Remove the failing db test placeholder so only packages with real Jest suites (@cortex/api, @cortex/shared) execute. Co-authored-by: Andrea Mazzucchelli <andrmaz@users.noreply.github.com>
|
Warning Review limit reached
More reviews will be available in 45 minutes and 37 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@cursoragent How can I run CodeQL for the current pull request? |
|
CodeQL was not configured in this repo, so there was nothing to run on PR #24 until now. I added How to run CodeQL on this PR1. Automatic (default)Once the workflow file is on the PR branch, CodeQL runs on every push to that branch. No extra steps needed. 2. Manual re-runIf you want to trigger it again without a new commit:
3. Manual dispatch (any branch)The workflow includes
Where results show up
PrerequisitesCodeQL uploads results to GitHub Code Scanning, which requires:
If the job fails with a permissions or The workflow scans JavaScript/TypeScript with |
Run javascript-typescript analysis on pull requests, pushes to main, a weekly schedule, and manual workflow_dispatch triggers. Co-authored-by: Andrea Mazzucchelli <andrmaz@users.noreply.github.com>


Summary
Adds CI test orchestration and CodeQL security scanning for pull requests.
Changes
pnpm test(turbo run test) at the repo roottesttask inturbo.jsonwith dependency on upstream builds.github/workflows/ci.ymlturbo --affectedon pull requests; runs the full suite onmaintestscript frompackages/db.github/workflows/codeql.ymlfor JavaScript/TypeScript CodeQL scanning on PRsVerification
pnpm test— 50 tests passed (29 api + 21 shared)pnpm test -- --affected— passes with Turbo cacheNotes
@cortex/apiincludes NestJS module wiring tests (integration-style) alongside controller unit teststestscript are skipped by Turbo automatically