- 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.
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: "pnpm"
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.15.0
|
|
|
|
- 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 BFF
|
|
run: pnpm --filter @customer-portal/bff run build
|
|
|
|
- name: Build Portal
|
|
run: pnpm --filter @customer-portal/portal run build
|