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