Skip to content

Commit b75ca6f

Browse files
committed
Fix CI: use macos-latest and macos-15-large, fix timeout on Unix/Windows
1 parent 1e7e9a6 commit b75ca6f

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
matrix:
3636
include:
3737
# macOS ARM64 (Apple Silicon) - most common developer machine
38-
- os: macos-14
38+
- os: macos-latest
3939
name: macOS ARM64
4040
# macOS x64 (Intel)
41-
- os: macos-13
41+
- os: macos-15-large
4242
name: macOS x64
4343
# Linux x64
4444
- os: ubuntu-latest
@@ -65,19 +65,28 @@ jobs:
6565
- name: Build
6666
run: npm run build
6767

68-
- name: Test MCP server startup
68+
- name: Test MCP server startup (Unix)
69+
if: runner.os != 'Windows'
6970
shell: bash
7071
run: |
7172
# Test that the server starts and responds to MCP initialize
72-
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | timeout 30 node dist/index.js 2>&1 | tee output.txt
73-
73+
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | node dist/index.js 2>&1 | head -20 | tee output.txt
7474
# Verify we got a valid response
7575
grep -q '"result"' output.txt && echo "Server initialized successfully"
7676
77+
- name: Test MCP server startup (Windows)
78+
if: runner.os == 'Windows'
79+
shell: pwsh
80+
run: |
81+
# Test that the server starts and responds to MCP initialize
82+
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | node dist/index.js 2>&1 | Select-Object -First 20 | Tee-Object -FilePath output.txt
83+
# Verify we got a valid response
84+
if (Select-String -Path output.txt -Pattern '"result"') { Write-Host "Server initialized successfully" } else { exit 1 }
85+
7786
- name: Run tests
7887
run: npm test
7988
# Tests may fail on some platforms due to tree-sitter ARM64 issues
80-
continue-on-error: ${{ matrix.os == 'macos-14' }}
89+
continue-on-error: ${{ matrix.os == 'macos-latest' }}
8190

8291
# Node.js version compatibility
8392
test-node-versions:

0 commit comments

Comments
 (0)