Open History to see the last commit
1name: CI
2
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8
9concurrency:
10 group: ci-${{ github.event.pull_request.number || github.sha }}
11 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
12
13jobs:
14 check:
15 name: Check
16 runs-on: blacksmith-8vcpu-ubuntu-2404
17 timeout-minutes: 10
18 steps:
19 - name: Checkout
20 uses: actions/checkout@v6
21 with:
22 sparse-checkout: |
23 /*
24 !/.repos/
25 sparse-checkout-cone-mode: false
26
27 - name: Setup Vite+
28 uses: voidzero-dev/setup-vp@v1
29 with:
30 node-version-file: package.json
31 cache: true
32 run-install: true
33
34 - name: Setup Rust
35 uses: dtolnay/rust-toolchain@stable
36 with:
37 components: rustfmt
38
39 - name: Ensure Electron runtime is installed
40 run: vp run --filter @t3tools/desktop ensure:electron
41
42 - name: Check
43 run: vp check
44
45 - name: Typecheck
46 run: vpr typecheck
47
48 - name: Check resource monitor formatting
49 run: cargo fmt --manifest-path native/resource-monitor/Cargo.toml -- --check
50
51 - name: Build desktop pipeline
52 run: vp run build:desktop
53
54 - name: Verify preload bundle output
55 run: |
56 test -f apps/desktop/dist-electron/preload.cjs
57 grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs
58 grep -n "__clerk_internal_electron_passkeys" apps/desktop/dist-electron/preload.cjs
59
60 test:
61 name: Test
62 runs-on: blacksmith-8vcpu-ubuntu-2404
63 timeout-minutes: 10
64 steps:
65 - name: Checkout
66 uses: actions/checkout@v6
67 with:
68 sparse-checkout: |
69 /*
70 !/.repos/
71 sparse-checkout-cone-mode: false
72
73 - name: Setup Vite+
74 uses: voidzero-dev/setup-vp@v1
75 with:
76 node-version-file: package.json
77 cache: true
78 run-install: true
79
80 - name: Setup Rust
81 uses: dtolnay/rust-toolchain@stable
82
83 - name: Ensure Electron runtime is installed
84 run: vp run --filter @t3tools/desktop ensure:electron
85
86 - name: Test
87 env:
88 T3CODE_TRANSFER_BUDGET_REPORT_PATH: ${{ runner.temp }}/t3code-transfer-budget.md
89 T3CODE_TRANSFER_BUDGET_RESULT_PATH: ${{ runner.temp }}/thread-transfer-result.json
90 run: vp run test
91
92 - name: Publish transfer budget report
93 if: always()
94 run: |
95 if test -f "${{ runner.temp }}/t3code-transfer-budget.md"; then
96 tee -a "$GITHUB_STEP_SUMMARY" < "${{ runner.temp }}/t3code-transfer-budget.md"
97 else
98 echo "Transfer budget report was not produced." >> "$GITHUB_STEP_SUMMARY"
99 fi
100
101 - name: Upload thread transfer result
102 if: always()
103 uses: actions/upload-artifact@v7
104 with:
105 name: thread-transfer-results
106 path: ${{ runner.temp }}/thread-transfer-result.json
107 if-no-files-found: ignore
108 retention-days: 30
109
110 - name: Test resource monitor
111 run: cargo test --locked --manifest-path native/resource-monitor/Cargo.toml
112
113 mobile_native_static_analysis:
114 name: Mobile Native Static Analysis
115 runs-on: blacksmith-6vcpu-macos-26
116 timeout-minutes: 10
117 steps:
118 - name: Checkout
119 uses: actions/checkout@v6
120 with:
121 sparse-checkout: |
122 /*
123 !/.repos/
124 sparse-checkout-cone-mode: false
125
126 - name: Setup Vite+
127 uses: voidzero-dev/setup-vp@v1
128 with:
129 node-version-file: package.json
130 cache: true
131 run-install: |
132 args:
133 - --filter=@t3tools/scripts...
134
135 - name: Install mobile native static analysis tools
136 run: brew bundle install --file apps/mobile/Brewfile
137
138 - name: Lint mobile native sources
139 run: vp run lint:mobile
140
141 release_smoke:
142 name: Release Smoke
143 runs-on: blacksmith-8vcpu-ubuntu-2404
144 timeout-minutes: 10
145 steps:
146 - name: Checkout
147 uses: actions/checkout@v6
148 with:
149 sparse-checkout: |
150 /*
151 !/.repos/
152 sparse-checkout-cone-mode: false
153
154 - name: Setup Vite+
155 uses: voidzero-dev/setup-vp@v1
156 with:
157 node-version-file: package.json
158 cache: true
159 run-install: |
160 args:
161 - --filter=@t3tools/scripts...
162
163 - name: Exercise release-only workflow steps
164 run: node scripts/release-smoke.ts