mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Two regressions from the previous CI install: - Installing opencode-ai globally in server-ci/server-tests caused opencode-agent.test.ts (gated on \`hasOpenCode\`) to start running for the first time and surface real but unrelated test breakage. Trim the install to claude-code, which is all that's needed for the Claude e2e tests that motivated the change. - claude-agent.integration.test.ts's supportedModels test calls the SDK's \`query()\` directly (bypassing ClaudeAgentClient) and didn't pass \`pathToClaudeCodeExecutable\`. The 0.2.71 SDK had a bundled cli.js fallback; 0.2.133 doesn't, so on Ubuntu CI it tries the per-platform binary path (\`...claude-agent-sdk-linux-x64-musl/claude\`) which isn't installed via the \`claude-code\` global. Resolve the binary explicitly in the test and pass it as the SDK option.
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: Server CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "packages/server/**"
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
- ".github/workflows/server-ci.yml"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "packages/server/**"
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
- ".github/workflows/server-ci.yml"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: "npm"
|
|
|
|
- name: Fetch origin/main (worktree tests)
|
|
run: git fetch --no-tags origin main:refs/remotes/origin/main
|
|
|
|
- name: Install server dependencies
|
|
run: npm install --workspace=@getpaseo/server --include-workspace-root
|
|
|
|
- name: Install Claude Code CLI for provider tests
|
|
run: npm install -g @anthropic-ai/claude-code
|
|
|
|
- name: Build highlight dependency
|
|
run: npm run build --workspace=@getpaseo/highlight
|
|
|
|
- name: Build relay dependency
|
|
run: npm run build --workspace=@getpaseo/relay
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck --workspace=@getpaseo/server
|
|
|
|
- name: Test
|
|
run: npm run test --workspace=@getpaseo/server
|
|
env:
|
|
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|