Skip to content

Commit 457ab3a

Browse files
ci(config): add supabase database url and direct url environment variables
- Updated .env.example and added apps/backend/.env.example with new variables - Modified CI workflow to include SUPABASE_DATABASE_URL and DIRECT_URL for database migration and testing jobs
1 parent 87cf150 commit 457ab3a

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
SUPABASE_DATABASE_URL=
2+
DIRECT_URL=
23
JWT_SECRET=
34
JWT_REFRESH_SECRET=
45
GOOGLE_CLIENT_ID=

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
- name: Migrate Database
6666
env:
6767
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/fairshare?schema=public
68+
SUPABASE_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/fairshare?schema=public
69+
DIRECT_URL: postgresql://postgres:postgres@localhost:5432/fairshare?schema=public
6870
JWT_SECRET: supersecret
6971
STRIPE_SECRET_KEY: test_key
7072
run: pnpm --filter backend exec prisma db push
@@ -76,6 +78,8 @@ jobs:
7678
env:
7779
CI: true
7880
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/fairshare?schema=public
81+
SUPABASE_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/fairshare?schema=public
82+
DIRECT_URL: postgresql://postgres:postgres@localhost:5432/fairshare?schema=public
7983
JWT_SECRET: supersecret
8084
STRIPE_SECRET_KEY: test_key
8185
NEXT_PUBLIC_APP_URL: http://localhost:3000

apps/backend/.env.example

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
SUPABASE_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/fairshare
2+
DIRECT_URL=postgresql://postgres:postgres@localhost:5432/fairshare
3+
JWT_SECRET=fairshare_dev_jwt_secret_change_me
4+
JWT_REFRESH_SECRET=fairshare_dev_jwt_refresh_secret_change_me
5+
GOOGLE_CLIENT_ID=fairshare_dev_google_client_id
6+
GOOGLE_CLIENT_SECRET=fairshare_dev_google_client_secret
7+
REDIS_URL=redis://127.0.0.1:6380
8+
AWS_ACCESS_KEY_ID=fairshare_dev_aws_access_key
9+
AWS_SECRET_ACCESS_KEY=fairshare_dev_aws_secret
10+
AWS_REGION=ap-south-1
11+
S3_BUCKET=fairshare-dev-receipts
12+
STRIPE_SECRET_KEY=sk_test_fairshare_dummy_key
13+
STRIPE_WEBHOOK_SECRET=whsec_fairshare_dummy_webhook_secret
14+
CORS_ORIGINS=http://localhost:3000,http://localhost:8081,exp://*:*
15+
SENTRY_DSN=

0 commit comments

Comments
 (0)