From 628068e33d340469801e10b6f3055ead17c35d44 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Fri, 21 Aug 2026 11:53:15 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20build=20steps=20=E2=80=94=20use=20'?= =?UTF-8?q?cd=20X=20&&=20bun=20run'=20not=20'bun=20--cwd'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: 'bun run' subcommand does NOT support --cwd flag. Both 'Build web' and 'MCP smoke test' steps used 'bun --cwd apps/X run build/smoke' which silently printed usage and exited 0 — no actual build/test ran. This meant: 1. No .next/ was produced → artifact upload found no files → deploy failed 2. Smoke test was silently skipped Fix: use 'cd apps/X && bun run Y' pattern instead. --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e93782..d21612d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,6 @@ jobs: build: name: typecheck + build runs-on: ubuntu-latest - outputs: - sha: ${{ steps.set-sha.outputs.sha }} steps: - name: Checkout uses: actions/checkout@v5 @@ -34,13 +32,13 @@ jobs: run: bun run typecheck - name: Build web - run: bun --cwd apps/web run build + run: cd apps/web && bun run build # Smoke: verify the MCP server + resources load and the indexer/module # graph resolves. Requires no external services (Redis/Postgres) — pure # module load + in-memory smoke test. - name: MCP smoke test - run: bun --cwd apps/mcp run smoke + run: cd apps/mcp && bun run smoke # Unit tests across all packages + apps. CI has no Postgres/Redis, so # tests use bun:test module mocking to stub @mcpedia/db, @mcpedia/queue, @@ -50,10 +48,6 @@ jobs: # Upload the built .next directory as a deploy artifact. # The deploy job copies this directly to the VPS — no build needed there. - - name: Set SHA output - id: set-sha - run: echo "sha=${GITHUB_SHA::12}" >> $GITHUB_OUTPUT - - name: Upload web build artifact uses: actions/upload-artifact@v4 with: