-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (39 loc) · 1.1 KB
/
ci.yml
File metadata and controls
43 lines (39 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches: [main]
pull_request:
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/quackback_test
BETTER_AUTH_SECRET: test-secret-for-ci-only-must-be-at-least-32-characters
BASE_URL: http://localhost:3000
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run lint
- run: bun run build
env:
SKIP_ENV_VALIDATION: true
- run: bun run --filter @quackback/web typecheck
test:
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: quackback_test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run db:migrate
- run: bun run test --run