From a15fae2251bb274a37e000d8c4b32e37dce71eeb Mon Sep 17 00:00:00 2001 From: cyph3rasi Date: Tue, 14 Jul 2026 15:57:46 -0700 Subject: [PATCH] Remove obsolete project workflow docs --- .github/workflows/ci.yml | 47 --------------------------------------- HOW_TO_WORK_ON_SYNAPIS.md | 38 ------------------------------- 2 files changed, 85 deletions(-) delete mode 100644 .github/workflows/ci.yml delete mode 100644 HOW_TO_WORK_ON_SYNAPIS.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 8134c0d..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,47 +0,0 @@ -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 diff --git a/HOW_TO_WORK_ON_SYNAPIS.md b/HOW_TO_WORK_ON_SYNAPIS.md deleted file mode 100644 index e1bab69..0000000 --- a/HOW_TO_WORK_ON_SYNAPIS.md +++ /dev/null @@ -1,38 +0,0 @@ -# Working on Synapsis - -Synapsis uses an embedded Turso database and runs as a native Node.js process. Docker and a local PostgreSQL server are not part of the development or deployment workflow. - -## Local loop - -```bash -npm install -cp .env.example .env -npm run db:migrate -npm run dev -``` - -Before handing off a change: - -```bash -npm run type-check -npm test -npm run build -``` - -When the schema changes, edit `src/db/schema.ts`, generate a migration with `npm run db:generate`, and verify it against a fresh database: - -```bash -DATABASE_PATH=/tmp/synapsis-test.db npm run db:migrate -``` - -## VPS workflow - -Production runs through `synapsis.service`, listening on `127.0.0.1:43821`. Reverse-proxy configuration belongs to the host operator. - -```bash -sudo /opt/synapsis/deploy/update.sh -sudo systemctl status synapsis -sudo journalctl -u synapsis -f -``` - -The updater makes a timestamped database backup, pulls with `--ff-only`, installs dependencies, runs migrations, builds, and restarts the service.