learning_ai_common_plat/.gitea/workflows/ci.yml
saravanakumardb1 0ffbdce0ef fix(ci): fix admin-web test mocks + workflow build command
- Add getCurrentUserFromRequest + requireAdmin to all 8 auth-server test mocks
- Fixes Vitest 4.x strict mock requiring all accessed exports
- Skip pnpm install in CI workflow (deps already installed locally)
2026-03-22 21:11:24 -07:00

31 lines
635 B
YAML

name: CI — Common Platform
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build, Test & Typecheck
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: /Users/sd9235/code/mygh/learning_ai_common_plat
steps:
- name: Pull latest
run: git pull --ff-only origin main || true
- name: Build all packages
run: pnpm -r --filter './packages/**' build
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm test