Problem
package.json defines validate-routes and test:routes scripts, but .github/workflows/ci.yml does not run either (it runs validate:prisma, lint, build, typecheck:scripts, and test). Given the size of the API surface, route definitions can drift from what these scripts validate without anything failing.
What needs to be done
- Confirm what
validate-routes and test:routes check and that they pass on the current main.
- Add them to the CI workflow as explicit steps.
- If either script is currently failing or obsolete, fix or remove it rather than leaving an unused script in
package.json.
Files
.github/workflows/ci.yml
package.json
scripts/ (the route validation implementation)
Acceptance deliverables
- Route validation runs on every pull request and blocks on failure.
- No unused validation scripts remain in
package.json.
Tests to pass
npm run validate-routes and npm run test:routes pass in CI on the current main.
Problem
package.jsondefinesvalidate-routesandtest:routesscripts, but.github/workflows/ci.ymldoes not run either (it runsvalidate:prisma,lint,build,typecheck:scripts, andtest). Given the size of the API surface, route definitions can drift from what these scripts validate without anything failing.What needs to be done
validate-routesandtest:routescheck and that they pass on the currentmain.package.json.Files
.github/workflows/ci.ymlpackage.jsonscripts/(the route validation implementation)Acceptance deliverables
package.json.Tests to pass
npm run validate-routesandnpm run test:routespass in CI on the currentmain.