Skip to content

Add CI pipeline to validate generated schemas #11

@jenny-s51

Description

@jenny-s51

Add a GH Actions workflow to validate that generated schemas are in sync with generator scripts. This will catch broken Zod schemas before publish, validate that schemas are regenerated when generator logic changes, and prevents stale/mismatched schemas.

Acceptance Criteria:

  1. TypeScript compilation - Zod schemas should compile without errors
  2. Schema consistency - Committed should schemas match generator output (dev MUST run npm run build after updating generators, otherwise will fail)

Workflow:

on: [pull_request, push]
steps:
  - npm ci
  - npm run build
  - git diff --exit-code  # Fail if schemas don't match
  - npx tsc --noEmit zod/index.ts  # Fail if TS errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions