-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.6 KB
/
Copy pathci.yml
File metadata and controls
55 lines (51 loc) · 1.6 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
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 20
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: callbackcloser
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d callbackcloser"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
NEXT_PUBLIC_APP_URL: https://example.com
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/callbackcloser?sslmode=disable
DIRECT_DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/callbackcloser?sslmode=disable
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_Y2xlcmsuZXhhbXBsZS5jb20k
CLERK_SECRET_KEY: sk_test_placeholder
STRIPE_SECRET_KEY: sk_test_placeholder
STRIPE_WEBHOOK_SECRET: whsec_placeholder
STRIPE_PRICE_STARTER: price_placeholder_starter
STRIPE_PRICE_PRO: price_placeholder_pro
TWILIO_ACCOUNT_SID: AC00000000000000000000000000000000
TWILIO_AUTH_TOKEN: twilio_auth_token_placeholder
TWILIO_WEBHOOK_AUTH_TOKEN: webhook_token_placeholder
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run env:check
- run: npm run db:validate
- run: npm run db:deploy
- run: npm test
- run: npm run lint
- run: npm run typecheck
- run: npm run build