Files
Synapsis/.github/workflows/ci.yml
T
cyph3rasi 21258edd95 Replace PostgreSQL and Docker deployment with embedded Turso, Drizzle relational queries v2, native systemd deployment on port 43821, and fresh SQLite migrations.
Hop-State: A_06FP5KEDBTB4A9ZT7QB498G
Hop-Proposal: R_06FP5KDWMCKVVMQZT4MVZ28
Hop-Task: T_06FP5DZ7T0G45FG93PT90B8
Hop-Attempt: AT_06FP5DZ7T0PKQW99V27JCV8
2026-07-14 15:44:42 -07:00

48 lines
1.1 KiB
YAML

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
smoke:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run type-check
- name: Targeted bot regression checks
run: >
AUTH_SECRET=ci-test-secret
npx vitest run
src/lib/bots/encryption.test.ts
src/lib/bots/contentSource.test.ts
src/lib/bots/posting.property.test.ts
src/lib/bots/mentionHandler.property.test.ts
src/lib/bots/scheduler.test.ts
- name: Embedded database smoke test
run: DATABASE_PATH=/tmp/synapsis-ci.db npm run db:migrate
- name: Production build
run: npm run build
env:
AUTH_SECRET: ci-test-secret
DATABASE_PATH: /tmp/synapsis-ci.db
NEXT_PUBLIC_NODE_DOMAIN: localhost:43821