46 lines
913 B
YAML
46 lines
913 B
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: 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
|
|
|
|
- name: Build Portal
|
|
run: pnpm --filter @customer-portal/portal run build
|
|
|
|
|