Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ci.yml

143 lines3.6 KB

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 run: vp run test
88​
89 - name: Test resource monitor
90 run: cargo test --locked --manifest-path native/resource-monitor/Cargo.toml
91​
92 mobile_native_static_analysis:
93 name: Mobile Native Static Analysis
94 runs-on: blacksmith-6vcpu-macos-26
95 timeout-minutes: 10
96 steps:
97 - name: Checkout
98 uses: actions/checkout@v6
99 with:
100 sparse-checkout: |
101 /*
102 !/.repos/
103 sparse-checkout-cone-mode: false
104​
105 - name: Setup Vite+
106 uses: voidzero-dev/setup-vp@v1
107 with:
108 node-version-file: package.json
109 cache: true
110 run-install: |
111 args:
112 - --filter=@t3tools/scripts...
113​
114 - name: Install mobile native static analysis tools
115 run: brew bundle install --file apps/mobile/Brewfile
116​
117 - name: Lint mobile native sources
118 run: vp run lint:mobile
119​
120 release_smoke:
121 name: Release Smoke
122 runs-on: blacksmith-8vcpu-ubuntu-2404
123 timeout-minutes: 10
124 steps:
125 - name: Checkout
126 uses: actions/checkout@v6
127 with:
128 sparse-checkout: |
129 /*
130 !/.repos/
131 sparse-checkout-cone-mode: false
132​
133 - name: Setup Vite+
134 uses: voidzero-dev/setup-vp@v1
135 with:
136 node-version-file: package.json
137 cache: true
138 run-install: |
139 args:
140 - --filter=@t3tools/scripts...
141​
142 - name: Exercise release-only workflow steps
143 run: node scripts/release-smoke.ts