Files
claude-context-mcp/.github/workflows/ci.yml
Max Qian 54cc336378 Add custom gemini baseurl support (#183)
* Add Gemini API basic URL configuration, optimize CI workflow to support multiple operating systems, update dependencies and fix cleanup scripts

* Optimize build performance, add Windows specific settings and troubleshooting documentation, update configurations to support incremental builds and caching

* Optimize CI workflow to support cross platform build output validation, update documentation to include validation commands for Windows and Unix
2025-08-30 21:52:52 +08:00

63 lines
1.8 KiB
YAML

name: CI
on:
push:
branches: [master, main, claude_context]
pull_request:
branches: [master, main, claude_context]
jobs:
lint_and_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Configure Windows line endings
if: matrix.os == 'windows-latest'
run: git config --global core.autocrlf false
- name: Install dependencies
run: pnpm install --frozen-lockfile
# - name: Lint code
# run: pnpm lint
- name: Build packages
run: pnpm build
- name: Test clean command (Windows validation)
if: matrix.os == 'windows-latest'
run: |
pnpm clean
echo "Clean command executed successfully on Windows"
- name: Verify build outputs (Unix)
if: matrix.os != 'windows-latest'
run: |
ls -la packages/core/dist || echo "packages/core/dist not found"
ls -la packages/mcp/dist || echo "packages/mcp/dist not found"
- name: Verify build outputs (Windows)
if: matrix.os == 'windows-latest'
run: |
Get-ChildItem packages/core/dist -ErrorAction SilentlyContinue | Format-Table -AutoSize || Write-Host "packages/core/dist not found"
Get-ChildItem packages/mcp/dist -ErrorAction SilentlyContinue | Format-Table -AutoSize || Write-Host "packages/mcp/dist not found"