Repository navigation
60 lines (53 loc) · 2.44 KB
/
Copy pathci.yml
File metadata and controls
60 lines (53 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: ci
# Correctness gate for the TypeScript surface: run the agent-sdk vitest suite
# plus the runtime smoke test, typecheck the packages that own a tsconfig, and
# build the TS packages (tsup transpiles without checking types, so the typecheck
# steps above are the real type gate). Mirrors the android-* workflows' toolchain
# (pnpm 9, node 22, frozen lockfile) so a clean checkout matches CI exactly.
on:
pull_request:
push:
branches: [main, develop]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with: { version: 9 }
- uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm }
- run: pnpm install --frozen-lockfile
- name: Test (agent-sdk vitest suite)
run: pnpm --filter @iqlabs-official/agent-sdk test
env:
# the panel Chrome layout pass must run here; a missing browser is a failure, never a skip
PANEL_CHROME_REQUIRED: "1"
- name: Test webview
run: pnpm --filter agentnet-webview test
- name: Build webview
run: pnpm --filter agentnet-webview build
# The runtime smoke test (pnpm run test:run) is intentionally NOT run here:
# it drives the real claude + codex CLIs and needs them installed and logged
# in, which a CI runner has not. Keep it as a local/manual integration check.
- name: Typecheck agent-sdk
run: pnpm --filter @iqlabs-official/agent-sdk exec tsc --noEmit
# the panel modules need the DOM lib, which the root tsconfig excludes (cli/localhost typecheck
# core with lib ES2022 only), so they get their own tsconfig and their own gate
- name: Typecheck panel (DOM)
run: pnpm --filter @iqlabs-official/agent-sdk typecheck:panel
- name: Typecheck CLI
run: pnpm --filter agentnet-cli exec tsc --noEmit
- name: Typecheck localhost
run: pnpm --filter agentnet-localhost exec tsc --noEmit
# agent-sdk has no build step here on purpose: its package.json `build`
# (bare tsup, no config/entry) fails on any clean checkout, and the package
# is consumed as TypeScript source by the surfaces; its type safety is the
# tsc step above.
- name: Build CLI
run: pnpm --filter agentnet-cli build
- name: Build MCP server
run: pnpm --filter @iqlabs-official/agentnet-mcp build