21258edd95
Hop-State: A_06FP5KEDBTB4A9ZT7QB498G Hop-Proposal: R_06FP5KDWMCKVVMQZT4MVZ28 Hop-Task: T_06FP5DZ7T0G45FG93PT90B8 Hop-Attempt: AT_06FP5DZ7T0PKQW99V27JCV8
48 lines
1.1 KiB
YAML
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
|