fix(ci): use PostgreSQL in acceptance-tests with dev credentials
Pull Request / unit-tests (pull_request) Successful in 1m2s
Pull Request / acceptance-tests (pull_request) Failing after 25s
Pull Request / analyze-bump-type (pull_request) Has been skipped

- Add PostgreSQL service container to acceptance-tests job
- Update DATABASE_URL to use euchre_camp_dev:euchreCampDev
- Remove SQLite configuration which was incompatible with schema
- Simplify environment variable configuration in acceptance-tests
This commit is contained in:
2026-04-01 15:03:20 -07:00
parent f8f9c205be
commit 1503420519
+19 -13
View File
@@ -33,9 +33,23 @@ jobs:
container: container:
image: docker.notsosm.art/euchre-camp/ci-base:latest image: docker.notsosm.art/euchre-camp/ci-base:latest
options: --user root options: --user root
services:
postgres:
image: postgres:15-alpine
env: env:
DATABASE_PROVIDER: sqlite POSTGRES_DB: euchre_camp_ci
DATABASE_URL: file:./prisma/ci.db 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
BETTER_AUTH_SECRET: test-secret-key-for-ci-only BETTER_AUTH_SECRET: test-secret-key-for-ci-only
steps: steps:
@@ -48,21 +62,13 @@ jobs:
- name: Generate Prisma client - name: Generate Prisma client
run: bun x prisma generate run: bun x prisma generate
env: env:
DATABASE_URL: postgresql://user:pass@localhost:5432/dummy DATABASE_URL: postgresql://euchre_camp_dev:euchreCampDev@localhost:5432/euchre_camp_ci
- name: Setup SQLite database - name: Setup PostgreSQL database
run: | run: bun x prisma migrate deploy
# Create SQLite database file
mkdir -p prisma
bun x prisma migrate deploy
- name: Run acceptance tests - name: Run acceptance tests
run: bun run test:acceptance run: bun run test:acceptance
env:
DATABASE_PROVIDER: sqlite
DATABASE_URL: file:./prisma/ci.db
BETTER_AUTH_SECRET: test-secret-key-for-ci-only
HOME: /root
analyze-bump-type: analyze-bump-type:
runs-on: ubuntu-latest runs-on: ubuntu-latest