feat/bun-transition #21
+19
-13
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user