From 65858169564f2c7658de8cf86e29a4b84ad47a57 Mon Sep 17 00:00:00 2001 From: Spark <79936503+spa5k@users.noreply.github.com> Date: Fri, 13 Feb 2026 00:14:00 +0530 Subject: [PATCH] Add MCP CI workflow for unit and external integration tests --- .github/workflows/mcp-tests.yml | 55 +++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/mcp-tests.yml diff --git a/.github/workflows/mcp-tests.yml b/.github/workflows/mcp-tests.yml new file mode 100644 index 000000000..66b294bf6 --- /dev/null +++ b/.github/workflows/mcp-tests.yml @@ -0,0 +1,55 @@ +name: MCP Tests + +on: + pull_request: + branches: [main] + paths: + - "pkg/tools/mcp*.go" + - "go.mod" + - "go.sum" + - ".github/workflows/mcp-tests.yml" + push: + branches: [main] + paths: + - "pkg/tools/mcp*.go" + - "go.mod" + - "go.sum" + - ".github/workflows/mcp-tests.yml" + workflow_dispatch: + +jobs: + mcp-tests: + runs-on: ubuntu-latest + timeout-minutes: 25 + + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + + - name: Setup Go + uses: actions/setup-go@v6.2.0 + with: + go-version-file: go.mod + + - name: Setup Node + uses: actions/setup-node@v6.2.0 + with: + node-version: lts/* + + - name: Show toolchain versions + run: | + go version + node -v + npm -v + npx --version + + - name: Download dependencies + run: go mod download + + - name: Run MCP unit tests + run: go test ./pkg/tools -run MCP -v + + - name: Run MCP external integration tests + env: + PICOCLAW_RUN_EXTERNAL_MCP_TESTS: "1" + run: go test ./pkg/tools -run MCPExternal -v