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

ci.yml

55 lines1.3 KB

1name: CI
2​
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8​
9jobs:
10 quality:
11 name: Lint, Typecheck, Test, Build
12 runs-on: blacksmith-4vcpu-ubuntu-2404
13 steps:
14 - name: Checkout
15 uses: actions/checkout@v4
16​
17 - name: Setup Bun
18 uses: oven-sh/setup-bun@v2
19 with:
20 bun-version-file: package.json
21​
22 - name: Setup Node
23 uses: actions/setup-node@v4
24 with:
25 node-version-file: package.json
26​
27 - name: Cache Bun and Turbo
28 uses: actions/cache@v4
29 with:
30 path: |
31 ~/.bun/install/cache
32 .turbo
33 key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-${{ hashFiles('turbo.json') }}
34 restore-keys: |
35 ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-
36​
37 - name: Install dependencies
38 run: bun install --frozen-lockfile
39​
40 - name: Lint
41 run: bun run lint
42​
43 - name: Typecheck
44 run: bun run typecheck
45​
46 - name: Test
47 run: bun run test
48​
49 - name: Build desktop pipeline
50 run: bun run build:desktop
51​
52 - name: Verify preload bundle output
53 run: |
54 test -f apps/desktop/dist-electron/preload.js
55 grep -nE "desktopBridge|getWsUrl|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.js