Open History to see the last commit
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: ubuntu-latest
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: 1.3.9
21
22 - name: Cache Bun and Turbo
23 uses: actions/cache@v4
24 with:
25 path: |
26 ~/.bun/install/cache
27 .turbo
28 key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-${{ hashFiles('turbo.json') }}
29 restore-keys: |
30 ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-
31
32 - name: Install dependencies
33 run: bun install --frozen-lockfile
34
35 - name: Lint
36 run: bun run lint
37
38 - name: Typecheck
39 run: bun run typecheck
40
41 - name: Test
42 run: bun run test
43
44 - name: Build desktop pipeline
45 run: bun run build:desktop
46
47 - name: Verify preload bundle output
48 run: |
49 test -f apps/desktop/dist-electron/preload.js
50 grep -nE "desktopBridge|getWsUrl|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.js