fix(ci): use existing PostgreSQL server at dhg.lol
- Remove PostgreSQL service container configuration - Use existing PostgreSQL server at dhg.lol with dev credentials - Update DATABASE_URL to use euchre_camp:LINGO5row_hiding@dhg.lol:5432/euchre_camp_dev - Apply environment variables to Prisma client generation and migration steps
This commit is contained in:
+4
-16
@@ -33,23 +33,9 @@ jobs:
|
||||
container:
|
||||
image: docker.notsosm.art/euchre-camp/ci-base:latest
|
||||
options: --user root
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
env:
|
||||
POSTGRES_DB: euchre_camp_ci
|
||||
POSTGRES_USER: euchre_camp_dev
|
||||
POSTGRES_PASSWORD: euchreCampDev
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
ports:
|
||||
- 5432:5432
|
||||
env:
|
||||
DATABASE_PROVIDER: postgresql
|
||||
DATABASE_URL: postgresql://euchre_camp_dev:euchreCampDev@localhost:5432/euchre_camp_ci
|
||||
DATABASE_URL: postgresql://euchre_camp:LINGO5row_hiding@dhg.lol:5432/euchre_camp_dev
|
||||
BETTER_AUTH_SECRET: test-secret-key-for-ci-only
|
||||
|
||||
steps:
|
||||
@@ -62,10 +48,12 @@ jobs:
|
||||
- name: Generate Prisma client
|
||||
run: bun x prisma generate
|
||||
env:
|
||||
DATABASE_URL: postgresql://euchre_camp_dev:euchreCampDev@localhost:5432/euchre_camp_ci
|
||||
DATABASE_URL: postgresql://euchre_camp:LINGO5row_hiding@dhg.lol:5432/euchre_camp_dev
|
||||
|
||||
- name: Setup PostgreSQL database
|
||||
run: bun x prisma migrate deploy
|
||||
env:
|
||||
DATABASE_URL: postgresql://euchre_camp:LINGO5row_hiding@dhg.lol:5432/euchre_camp_dev
|
||||
|
||||
- name: Run acceptance tests
|
||||
run: bun run test:acceptance
|
||||
|
||||
Reference in New Issue
Block a user