Skip to content

feat(dtpr-ai): v2 schema reshape — Element.context, subchains, PII, A… #21

feat(dtpr-ai): v2 schema reshape — Element.context, subchains, PII, A…

feat(dtpr-ai): v2 schema reshape — Element.context, subchains, PII, A… #21

Workflow file for this run

name: API tests
on:
pull_request:
branches: [main]
paths:
- 'api/**'
- 'packages/**'
- '.github/workflows/api-test.yaml'
push:
branches: [main]
paths:
- 'api/**'
- 'packages/**'
- '.github/workflows/api-test.yaml'
jobs:
test:
name: Lint, typecheck, vitest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
# @dtpr/api/schema + @dtpr/api/validator ship via tsup-compiled dist/;
# @dtpr/ui's three subpaths ship via Vite library mode. Both must be
# built before `tsc --noEmit` can resolve the subpath imports.
- run: pnpm --filter ./api build:schema
- run: pnpm --filter @dtpr/ui build
- run: pnpm --filter @dtpr/ui test
- run: pnpm --filter ./api typecheck
- run: pnpm --filter ./api test
- run: pnpm --filter ./api schema:validate ai@2026-04-16-beta