ci.yml•2.24 kB
name: CI
on:
push:
branches: [ main, develop, feature/* ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Test & Build
runs-on: macos-latest
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check code formatting
run: npm run format:check
- name: Run linting
run: npm run lint -- --max-warnings 100
- name: Run TypeScript compilation
run: npm run build
- name: Run tests
run: npm test
- name: Test MCP server startup
run: |
# Test that the server binary exists and is executable
node --version
echo "Testing server can load..."
# Test that the server script loads without errors (basic syntax check)
node -c dist/index.js && echo "Server script is valid"
xcode-compatibility:
name: Xcode Compatibility Check
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Check Xcode installation
run: |
xcode-select --version
xcodebuild -version
xcrun simctl help | head -5
- name: Test Xcode CLI compatibility
run: |
# Verify basic Xcode tools work (these are wrapped by XC-MCP)
xcodebuild -showsdks | head -5
xcrun simctl list devices | head -10
- name: Test XC-MCP server with real Xcode environment
run: |
# Test that the server can load in the Xcode environment
echo "Testing server loading with Xcode environment..."
node -c dist/index.js && echo "Server script validates in Xcode environment"