From a659ebeec25e03582d2322ae26c7a6cb9c59d7d7 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Wed, 19 Aug 2026 22:10:47 +0700 Subject: [PATCH] ci: add GitHub Actions workflow (Bun + turbo typecheck/build + MCP smoke) Builds the whole monorepo on push/PR to main: bun install --frozen-lockfile, turbo typecheck, turbo build (incl. Next.js web prerender), and the MCP in-memory smoke test. No external services required for CI. --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..90b5aca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +# Cancel in-progress runs for the same ref so a fresh push supersedes them. +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: typecheck + build (turbo) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: "1.3.14" + + - name: Install dependencies + run: bun install --frozen-lockfile + + # Real build: typecheck + turbo run build across all workspace packages + # (incl. the Next.js web app). A green run means the whole monorepo + # compiles and the web app prerenders. + - name: Typecheck + run: bun run typecheck + + - name: Build + run: 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