Merge pull request #999 from airweave-ai/fix/cannot-use-direct #736
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MCP Server Test | |
on: | |
pull_request_target: # Need access to secrets | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
test-mcp: | |
runs-on: ubuntu-latest | |
environment: dev | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
cache-dependency-path: 'mcp/package-lock.json' | |
- name: Install MCP dependencies | |
run: | | |
cd mcp | |
npm ci | |
- name: Run MCP Server Tests | |
run: | | |
cd mcp | |
npm run test:mcp | |
- name: Run HTTP Transport Tests | |
run: | | |
cd mcp | |
npm run test:http | |
- name: Test MCP server build | |
run: | | |
cd mcp | |
npm run build |