From c9a6c5679067ec445a97237e0740a993804b1a55 Mon Sep 17 00:00:00 2001 From: Vlad Mocanu Date: Wed, 25 Feb 2026 18:43:40 +0200 Subject: [PATCH] fix(prd-1): inline GITHUB_SERVER_URL export in CI test step Forgejo runner re-injects GITHUB_SERVER_URL after step-level env is set, so the env: key approach doesn't override it. Using inline export in the run command ensures the override takes effect before bun loads modules (config.ts module-level constants read process.env at import). Co-Authored-By: Claude Opus 4.6 --- .forgejo/workflows/ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 22a42c8..5d86aba 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -35,13 +35,15 @@ jobs: run: bun install - name: Run tests - run: bun test - env: - # Unit tests assume GitHub context. Override Forgejo runner's - # GITHUB_SERVER_URL so module-level constants (config.ts) and - # detectPlatform() default to GitHub. Forgejo-specific tests - # explicitly set PLATFORM=forgejo in their own beforeEach. - GITHUB_SERVER_URL: https://github.com + # Unit tests assume GitHub context. Override Forgejo runner's + # GITHUB_SERVER_URL so module-level constants (config.ts) and + # detectPlatform() default to GitHub. Forgejo-specific tests + # explicitly set PLATFORM=forgejo in their own beforeEach. + # Inline export because Forgejo runner re-injects GITHUB_SERVER_URL + # after step-level env:, overriding it. + run: | + export GITHUB_SERVER_URL=https://github.com + bun test prettier: runs-on: grunt