server-tests in ci.yml and Server CI both need claude on PATH for the e2e tests that probe model catalogs and live preferences. cli-tests already installs the trio (claude-code, codex, opencode-ai); server tests now match.
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 agent CLIs for provider tests
|
|
run: npm install -g @anthropic-ai/claude-code @openai/codex@0.105.0 opencode-ai
|
|
|
|
- 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 }}
|