-
Notifications
You must be signed in to change notification settings - Fork 2
97 lines (75 loc) · 2.97 KB
/
Copy pathci.yml
File metadata and controls
97 lines (75 loc) · 2.97 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI
on:
pull_request:
push:
branches:
- main
concurrency:
group: ci-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Lint, test, and build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.2
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Validate changesets metadata
run: pnpm changeset:validate
- name: Run lint
run: pnpm ci:lint
- name: Run tests
run: pnpm ci:test
- name: Run production build
run: pnpm ci:build
windows-runtime-verify:
name: Windows runtime verification
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.2
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
# Windows CI now proves that our non-PTY subprocess paths pass `windowsHide: true`
# and that provider/session PTY startup still works with the existing cross-platform
# argv contract. It does not visually prove the absence of a transient desktop
# console flash from node-pty itself; that still requires a manual smoke check on
# a real Windows desktop.
- name: Run targeted Windows provider tests
run: pnpm --filter @coder-studio/providers exec vitest run src/claude/definition.test.ts src/codex/definition.test.ts
- name: Run targeted Windows server tests
run: pnpm --filter @coder-studio/server exec vitest run src/__tests__/provider-runtime/command-check.test.ts src/__tests__/provider-runtime/command-runner.test.ts src/__tests__/provider-runtime/install-manager.test.ts src/__tests__/workspace/runtime-check.test.ts src/git/cli.windows.test.ts src/supervisor/evaluator.windows.test.ts src/__tests__/server-provider-install-wiring.test.ts src/__tests__/session-commands.test.ts src/__tests__/session-integration.test.ts
- name: Run targeted Windows CLI tests
run: pnpm --filter @spencer-kit/coder-studio exec vitest run src/browser.test.ts src/bin.test.ts src/pm2-control.test.ts src/server-control.test.ts
- name: Build web assets for CLI packaging
run: pnpm build:web
- name: Build server package
run: pnpm --filter @coder-studio/server build
- name: Build CLI package
run: pnpm --filter @spencer-kit/coder-studio build