Files
iios/.github/workflows/ci.yml
T
kirti d5e0dacae3
CI / build (push) Failing after 1m49s
ci: build workspace + generate prisma before typecheck
pnpm -r typecheck ran before pnpm -r build, but the @insignia/* packages
publish their types only via built dist/*.d.ts. So consumers failed with
TS2307 'Cannot find module @insignia/iios-contracts' before any dist existed.
Also generate the iios-service Prisma client so its schema-derived types
resolve. Build now precedes typecheck; prisma:generate precedes both.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 15:04:41 +00:00

32 lines
1002 B
YAML

name: CI
on:
pull_request:
push:
branches: [main, develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm boundary
# iios-service uses Prisma: generate the client so its generated types
# (schema enums, Prisma.InputJsonValue) are available for typecheck/build.
- run: pnpm --filter @insignia/iios-service prisma:generate
# Build before typecheck: the @insignia/* workspace packages publish their
# types via built dist/*.d.ts, so consumers (iios-kernel-client, etc.)
# can only resolve them once dist exists. Typechecking first fails with
# TS2307 "Cannot find module '@insignia/iios-contracts'".
- run: pnpm -r build
- run: pnpm -r typecheck
- run: pnpm test