-
Notifications
You must be signed in to change notification settings - Fork 82
52 lines (43 loc) · 1.22 KB
/
Copy pathtest-mcp.yml
File metadata and controls
52 lines (43 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test MCP Server
on:
push:
branches: [ master, release ]
pull_request:
workflow_dispatch:
workflow_call:
jobs:
mcp_unit_tests:
name: MCP Unit Tests (PHP ${{ matrix.php-version }})
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v7
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install dependencies
run: composer install
- name: Run MCP unit tests
run: vendor/bin/phpunit tests/McpTest.php
mcp_integration_test:
name: MCP Integration Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: sqlite3, pdo_sqlite
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq sqlite3 curl
composer install
- name: Run MCP integration tests
run: |
chmod +x tests/mcp-integration-test.sh
./tests/mcp-integration-test.sh --cleanup