- add npx prisma generate to CI action before type checks [Patch] - fix missing globSync import in workspace type tests [Patch] - fix GlobeView undefined indexing for entity rendering [Patch] - fix OSMSearchPlugin zoom property to flyToBaseDistance [Patch] - allow getSidebarComponent to accept an optional plugin prop [Patch] - map categories for embassies and spaceports [Patch] Co-authored-by: Antigravity AI <[email protected]>
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
typecheck:
|
|
name: Type Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: npx prisma generate
|
|
- run: pnpm exec tsc --noEmit
|
|
|
|
test:
|
|
name: Unit Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm test
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
needs: [typecheck, test]
|
|
env:
|
|
DATABASE_URL: file:./data/wwv.db
|
|
AUTH_SECRET: ci-placeholder-secret-not-used-in-tests
|
|
NEXT_PUBLIC_WWV_EDITION: local
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm build
|