From ad2e780276c42b60905e21ce74fb309cd2ccfddf Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Sun, 1 Nov 2026 15:56:43 +0900 Subject: [PATCH] fix(ci): stabilize landing dev GitHub requests Refs #683, #891 Co-authored-by: sisyphus-dev-ai --- .github/workflows/publish.yml | 3 +++ e2e/landing-dev.spec.ts | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 45e98b192..1ed2f8f8e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -302,6 +302,7 @@ jobs: run: bun run test:e2e:next - name: Run Landing dev navigation tests (Next) env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LANDING_BUILD_MODE: next run: bunx playwright test -c playwright.landing-dev.config.ts - name: Build Landing (Next, singleCss) @@ -711,6 +712,8 @@ jobs: - name: Run E2E Tests run: bun run test:e2e - name: Run Landing dev navigation tests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: bunx playwright test -c playwright.landing-dev.config.ts - name: Build Landing (singleCss) env: diff --git a/e2e/landing-dev.spec.ts b/e2e/landing-dev.spec.ts index 4eebd357b..9bde2fa2b 100644 --- a/e2e/landing-dev.spec.ts +++ b/e2e/landing-dev.spec.ts @@ -23,6 +23,16 @@ const test = base.extend<{ browserErrors: string[] }>({ ], }) +test.beforeEach(async ({ page }) => { + await page.route('**/api.github.com/repos/dev-five-git/devup-ui', (route) => + route.fulfill({ + status: 200, + contentType: 'application/json', + body: JSON.stringify({ stargazers_count: 1234 }), + }), + ) +}) + const routes = [ ['/', '/'], ['/docs/overview', '/docs/overview'],