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.
This commit is contained in:
parent
ca68cabe76
commit
1762d67e3f
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user