Skip to content

Commit 7ed72ff

Browse files
committed
fix(ci): add explicit DATABASE_URL override step after secrets injection
The secrets injection step writes DATABASE_URL to GITHUB_ENV which takes precedence over job-level env vars. Added an explicit step to re-set DATABASE_URL to the test container URL after secrets are injected.
1 parent 3538d46 commit 7ed72ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ jobs:
291291
- name: Build SDK before integration tests
292292
run: cd sdk && bun run build
293293

294+
# Override any DATABASE_URL injected from secrets with our test container URL
295+
- name: Override DATABASE_URL for test container
296+
run: echo "DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/testdb" >> $GITHUB_ENV
297+
294298
- name: Setup database schema
295299
uses: nick-fields/retry@v3
296300
env:

0 commit comments

Comments
 (0)