[CI 03] ci: build and test workflow for backend and frontend - #232
Merged
Conversation
Ported from #46 onto current main, extended for this tree: backend job runs npm ci, tests (--if-present, so it is safe to merge in any order relative to the test-harness PR) and tsc build; frontend job runs tests, eslint as an advisory step (main currently carries 23 lint errors — flip to blocking once burned down), and a production next build with placeholder NEXT_PUBLIC_* env (verified locally that the build succeeds and contacts nothing); evals job runs node evals/run.mjs when present, else skips. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
QA Runner seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This was referenced Jul 20, 2026
willchen96
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A CI workflow (
.github/workflows/ci.yml) that builds and tests both packages and runs the eval harness on every PR and push tomain. Ported from the reference index (#205, row amal66#46) and extended for this tree. Complements the e2e workflow in #220 — this one is the fast gate (~2-3 min), that one the full-stack gate.Changes
Three jobs:
npm ci,npm test --if-present,npm run build(tsc, so the backend is typechecked on every PR).npm ci,npm test --if-present,npm run lint(advisory —continue-on-error, becausemaincurrently carries 23 eslint errors; flip it to blocking once that backlog is burned down), and a productionnext buildwith placeholderNEXT_PUBLIC_*env (values are only inlined at build time; nothing is contacted — verified locally that the build succeeds with placeholders).node evals/run.mjs --threshold 1.0whenevals/exists, else skips with a message.Why
The repo has no CI besides the e2e workflow proposed in #220 today: a PR that breaks the backend build, fails
tsc, or breaks a unit test reports green. Test steps use--if-presentand the evals job checks forevals/run.mjs, so this is safe to merge before or after the other testing PRs in any order — on today's tree it still gates both builds.Testing
npm ci && npm run buildpasses; frontend production build with the exact placeholder env in the workflow passes;actionlint-style read-through of the YAML (the workflow mirrors the fork's, which ran green on the fork's Actions).backendandfrontendchecks to branch protection alongsidee2e / playwright(seedocs/e2e-ci.mdin [Testing 12] test: Playwright e2e suite + CI merge gate (auth, chat, projects, tabular, workflows) #220).Based directly on
main; no shared commits with the other testing PRs.🤖 Generated with Claude Code