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 <noreply@anthropic.com>
This commit is contained in:
Vlad MocanuandClaude Opus 4.6 committed 2026-02-25 18:43:40 +02:00
1 parent 638645b8af
commit c9a6c56790
1 file changed
+9 -7
+9 -7
View File
@@ -35,13 +35,15 @@ jobs:
run: bun install run: bun install
- name: Run tests - name: Run tests
run: bun test # Unit tests assume GitHub context. Override Forgejo runner's
env: # GITHUB_SERVER_URL so module-level constants (config.ts) and
# Unit tests assume GitHub context. Override Forgejo runner's # detectPlatform() default to GitHub. Forgejo-specific tests
# GITHUB_SERVER_URL so module-level constants (config.ts) and # explicitly set PLATFORM=forgejo in their own beforeEach.
# detectPlatform() default to GitHub. Forgejo-specific tests # Inline export because Forgejo runner re-injects GITHUB_SERVER_URL
# explicitly set PLATFORM=forgejo in their own beforeEach. # after step-level env:, overriding it.
GITHUB_SERVER_URL: https://github.com run: |
export GITHUB_SERVER_URL=https://github.com
bun test
prettier: prettier:
runs-on: grunt runs-on: grunt