Open History to see the last commit
1name: CI
2
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8
9jobs:
10 check:
11 name: Check
12 runs-on: blacksmith-8vcpu-ubuntu-2404
13 timeout-minutes: 10
14 steps:
15 - name: Checkout
16 uses: actions/checkout@v6
17
18 - name: Setup Vite+
19 uses: voidzero-dev/setup-vp@v1
20 with:
21 node-version-file: package.json
22 cache: true
23 run-install: true
24
25 - name: Ensure Electron runtime is installed
26 run: vp run --filter @t3tools/desktop ensure:electron
27
28 - name: Check
29 run: vp check
30
31 - name: Typecheck
32 run: vpr typecheck
33
34 - name: Build desktop pipeline
35 run: vp run build:desktop
36
37 - name: Verify preload bundle output
38 run: |
39 test -f apps/desktop/dist-electron/preload.cjs
40 grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs
41
42 test:
43 name: Test
44 runs-on: blacksmith-8vcpu-ubuntu-2404
45 timeout-minutes: 10
46 steps:
47 - name: Checkout
48 uses: actions/checkout@v6
49
50 - name: Setup Vite+
51 uses: voidzero-dev/setup-vp@v1
52 with:
53 node-version-file: package.json
54 cache: true
55 run-install: true
56
57 - name: Ensure Electron runtime is installed
58 run: vp run --filter @t3tools/desktop ensure:electron
59
60 - name: Test
61 run: vp run test
62
63 test_browser:
64 name: Test Browser
65 runs-on: blacksmith-8vcpu-ubuntu-2404
66 timeout-minutes: 10
67 steps:
68 - name: Checkout
69 uses: actions/checkout@v6
70
71 - name: Setup Vite+
72 uses: voidzero-dev/setup-vp@v1
73 with:
74 node-version-file: package.json
75 cache: true
76 run-install: true
77
78 - name: Cache Playwright browsers
79 uses: actions/cache@v5
80 with:
81 path: ~/.cache/ms-playwright
82 key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
83 restore-keys: |
84 ${{ runner.os }}-playwright-
85
86 - name: Install browser test runtime
87 run: vp run --filter @t3tools/web test:browser:install
88
89 - name: Browser test / Chat view
90 working-directory: apps/web
91 run: vp test run --mode browser --browser=chromium src/components/ChatView.browser.tsx
92
93 - name: Browser test / Chat markdown
94 working-directory: apps/web
95 run: vp test run --mode browser --browser=chromium src/components/ChatMarkdown.browser.tsx
96
97 - name: Browser test / Components
98 working-directory: apps/web
99 run: |
100 vp test run --mode browser --browser=chromium \
101 src/components/GitActionsControl.browser.tsx \
102 src/components/KeybindingsToast.browser.tsx \
103 src/components/ThreadTerminalDrawer.browser.tsx \
104 src/components/chat/MessagesTimeline.browser.tsx \
105 src/components/chat/ProviderModelPicker.browser.tsx \
106 src/components/chat/CompactComposerControlsMenu.browser.tsx \
107 src/components/settings/SettingsPanels.browser.tsx
108
109 mobile_native_static_analysis:
110 name: Mobile Native Static Analysis
111 runs-on: blacksmith-12vcpu-macos-26
112 timeout-minutes: 10
113 steps:
114 - name: Checkout
115 uses: actions/checkout@v6
116
117 - name: Setup Vite+
118 uses: voidzero-dev/setup-vp@v1
119 with:
120 node-version-file: package.json
121 cache: true
122 run-install: true
123
124 - name: Install mobile native static analysis tools
125 run: brew bundle install --file apps/mobile/Brewfile
126
127 - name: Lint mobile native sources
128 run: vp run lint:mobile
129
130 release_smoke:
131 name: Release Smoke
132 runs-on: blacksmith-8vcpu-ubuntu-2404
133 timeout-minutes: 10
134 steps:
135 - name: Checkout
136 uses: actions/checkout@v6
137
138 - name: Setup Vite+
139 uses: voidzero-dev/setup-vp@v1
140 with:
141 node-version-file: package.json
142 cache: true
143 run-install: true
144
145 - name: Exercise release-only workflow steps
146 run: node scripts/release-smoke.ts