Skip to content

Commit 0440189

Browse files
committed
up
1 parent f28a305 commit 0440189

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/api-integration-gate.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
jobs:
1313
api-integration-gate:
1414
runs-on: ubuntu-latest
15+
env:
16+
DATABASE_URL: file:./prisma/dev.db
17+
NEXTAUTH_SECRET: test_ci_secret_change_me
18+
NEXTAUTH_URL: http://localhost:3000
1519
steps:
1620
- name: Checkout
1721
uses: actions/checkout@v4
@@ -26,6 +30,12 @@ jobs:
2630
run: |
2731
npm install --no-audit --no-fund
2832
33+
- name: Create .env for CI
34+
run: |
35+
printf "DATABASE_URL=file:./prisma/dev.db\n" > .env
36+
printf "NEXTAUTH_SECRET=${NEXTAUTH_SECRET}\n" >> .env
37+
printf "NEXTAUTH_URL=${NEXTAUTH_URL}\n" >> .env
38+
2939
- name: Prisma generate & db push (SQLite dev)
3040
run: |
3141
npx prisma generate

0 commit comments

Comments
 (0)