:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(ci): sparse checkout for mcp unit tests (#125536)
Raúl Negrón-Oterof8e0e3f14e8f
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.ymlindex b30fae1ff82a..0134253da8db 100644--- a/.github/workflows/ci-mcp.yml+++ b/.github/workflows/ci-mcp.yml@@ -275,8 +275,33 @@ jobs:(needs.changes.outputs.mcp == 'true' || needs.changes.outputs.mcp-typescript == 'true')&& github.event_name != 'push'steps:+ # Root files, every package.json (pnpm resolves the whole workspace), and the+ # trees MCP imports or reads at runtime. A test that reads a path outside this+ # list fails with ENOENT: add the path here.- name: Checkout codeuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout-cone-mode: false+ sparse-checkout: |+ /*+ !/*/+ package.json+ /.github/actions/+ /.husky/+ /bin/fix-rdkafka-paths+ /services/mcp/+ /packages/+ /patches/+ /common/+ /tools/openapi-codegen/+ /products/*/mcp/+ /products/*/frontend/+ /products/*/skills/+ /products/notebooks/+ /products/ai_observability/backend/prompts/+ /frontend/src/queries/+ /frontend/src/taxonomy/+ /frontend/src/mocks/fixtures/- name: Mint setup-action GitHub tokenid: setup-gh-token