Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

ci: skip the full build when a PR only touches api (#16845)

Hazem Adelccea05cbabe4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 84d743d86ff..3d36b8caca3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -131,6 +131,10 @@ jobs:
if [ "$RUN_ALL" = "true" ]; then
FILTERS="$FILTERS $(npx tsx tools/scripts/test-filters.ts)"
fi
+ if [ -z "${FILTERS// /}" ]; then
+ echo "Only api is affected and the api-tests jobs cover it, so there is nothing to build here."
+ exit 0
+ fi
npx turbo run typecheck build test $FILTERS
- name: Check new migrations are rollback-safe