- Frontend: vitest.config.ts with vue plugin + jsdom, dummy component test - Server: in-memory SQLite test DB factory + Hono testClient helper + smoke test - CI: add pnpm audit and server coverage threshold steps - Root: vitest workspace config for multi-project test discovery Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
42 lines
874 B
YAML
42 lines
874 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- name: Tests
|
|
run: pnpm test -- --run
|
|
|
|
- name: Type check
|
|
run: |
|
|
pnpm --filter server exec tsc --noEmit
|
|
pnpm --filter frontend exec vue-tsc --noEmit
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|
|
|
|
- name: Security audit
|
|
run: pnpm audit --audit-level=high
|
|
|
|
- name: Server test coverage
|
|
run: pnpm test -- --run --project server --coverage --coverage.provider=v8 --coverage.reporter=text --coverage.thresholds.lines=30
|