Skip to content

Enforce route validation in CI #20

Description

@priscaenoch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions