From 1762d67e3fff08c1cb26e93c8ffc40ee1bd60c38 Mon Sep 17 00:00:00 2001 From: "T. Narantuya" Date: Fri, 29 Aug 2025 14:19:39 +0900 Subject: [PATCH] Update CI and test workflows to build shared package and generate Prisma client - Added steps to build the shared package and generate the Prisma client in both CI and test workflows. - Removed redundant build step for the shared package in the CI workflow. --- .github/workflows/ci.yml | 9 ++++++--- .github/workflows/test.yml | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4457ac79..2e3fd0ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,15 +27,18 @@ jobs: - name: Install deps run: pnpm install --frozen-lockfile + - name: Build Shared (needed for type refs) + run: pnpm --filter @customer-portal/shared run build + + - name: Generate Prisma client + run: pnpm --filter @customer-portal/bff run db:generate + - name: Type check (workspace) run: pnpm --recursive run type-check - name: Lint (workspace) run: pnpm --recursive run lint - - name: Build Shared - run: pnpm --filter @customer-portal/shared run build - - name: Build BFF run: pnpm --filter @customer-portal/bff run build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0bf3ff78..e044ab40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,6 +64,12 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Build shared package (needed for type refs) + run: pnpm --filter @customer-portal/shared run build + + - name: Generate Prisma client + run: pnpm --filter @customer-portal/bff run db:generate + - name: Type check run: pnpm type-check