- rename product to Scribase Mail across web app, emails, marketing and docs - new monochrome mark/favicons and neutral black/white theme; remove emoji UI - source code link (AGPL-3.0) in sidebar, login and unsubscribe pages - rewrite marketing site and self-hosting docs for OCI Email Delivery, add OCI notes page (event sources, unavailable features) - add NOTICE and MERGE.md crediting useSend and listing changes - add deploy/compose.scribase-mail.yml (web+postgres+redis, 1.47 GB limits), deploy/.env.example, Caddy site and DEPLOY.md for mail.scribase.com - replace legacy provider env vars in turbo.json, CI, env examples, docker files - OCI SDK packages as server externals for the standalone build Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
88 lines
2.0 KiB
YAML
88 lines
2.0 KiB
YAML
name: Web Tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "apps/web/**"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "apps/web/**"
|
|
|
|
jobs:
|
|
web-tests:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
NODE_ENV: test
|
|
NEXTAUTH_URL: http://localhost:3000
|
|
NEXTAUTH_SECRET: test-secret
|
|
DATABASE_URL: postgresql://usesend:password@127.0.0.1:5432/usesend_test
|
|
REDIS_URL: redis://127.0.0.1:6379/15
|
|
OCI_REGION: eu-frankfurt-1
|
|
NEXT_PUBLIC_IS_CLOUD: "true"
|
|
API_RATE_LIMIT: "2"
|
|
AUTH_EMAIL_RATE_LIMIT: "5"
|
|
RUN_INTEGRATION: "true"
|
|
services:
|
|
postgres:
|
|
image: postgres:16
|
|
env:
|
|
POSTGRES_USER: usesend
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_DB: usesend_test
|
|
ports:
|
|
- 5432:5432
|
|
options: >-
|
|
--health-cmd "pg_isready -U usesend -d usesend_test"
|
|
--health-interval 5s
|
|
--health-timeout 5s
|
|
--health-retries 20
|
|
redis:
|
|
image: redis:7
|
|
ports:
|
|
- 6379:6379
|
|
options: >-
|
|
--health-cmd "redis-cli ping"
|
|
--health-interval 5s
|
|
--health-timeout 5s
|
|
--health-retries 20
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 11.11.0
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Generate Prisma client
|
|
run: pnpm --filter=web db:generate
|
|
|
|
- name: Type check
|
|
run: pnpm --filter=web typecheck
|
|
|
|
- name: Prepare test database schema
|
|
run: pnpm --filter=web test:integration:prepare
|
|
|
|
- name: Run unit tests
|
|
run: pnpm --filter=web test:unit
|
|
|
|
- name: Run tRPC tests
|
|
run: pnpm --filter=web test:trpc
|
|
|
|
- name: Run API tests
|
|
run: pnpm --filter=web test:api
|
|
|
|
- name: Run integration tests
|
|
run: pnpm --filter=web test:integration
|