From 0653d8fcdec0b3ccb6501154c33307c0e4735db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Magyar?= Date: Fri, 1 May 2026 12:29:53 +0100 Subject: [PATCH] fix(ci): seed e2e with a small fixture repo (#1249) Avoid crashing the e2e job during setup by indexing a tiny temp fixture instead of the full monorepo before Playwright starts. Made-with: Cursor --- .github/workflows/ci-e2e.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index a017af628..f1e1983bf 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -25,6 +25,8 @@ jobs: if: needs.check-changes.result == 'success' && needs.check-changes.outputs.web_changed == 'true' runs-on: ubuntu-latest timeout-minutes: 20 + env: + GITNEXUS_HOME: ${{ runner.temp }}/gitnexus-home steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -44,9 +46,14 @@ jobs: - name: Analyze repository (index for backend) run: | - node gitnexus/dist/cli/index.js analyze || true - if [ ! -d ".gitnexus" ]; then - echo "::error::No .gitnexus index created" + E2E_REPO="${RUNNER_TEMP}/gitnexus-e2e-repo" + rm -rf "${E2E_REPO}" + mkdir -p "${E2E_REPO}" + cp -R gitnexus/test/fixtures/mini-repo/src "${E2E_REPO}/src" + printf '%s\n' '{"name":"e2e-mini-repo","version":"0.0.0","private":true}' > "${E2E_REPO}/package.json" + node gitnexus/dist/cli/index.js analyze "${E2E_REPO}" --skip-git --skip-agents-md --name e2e-mini-repo + if [ ! -d "${E2E_REPO}/.gitnexus" ]; then + echo "::error::No fixture .gitnexus index created" exit 1 fi