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

ci.yml

71 lines1.8 KB

1name: CI
2​
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8​
9jobs:
10 quality:
11 name: Lint, Typecheck, Test, Browser 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: Cache Playwright browsers
38 uses: actions/cache@v4
39 with:
40 path: ~/.cache/ms-playwright
41 key: ${{ runner.os }}-playwright-${{ hashFiles('bun.lock') }}
42 restore-keys: |
43 ${{ runner.os }}-playwright-
44​
45 - name: Install dependencies
46 run: bun install --frozen-lockfile
47​
48 - name: Lint
49 run: bun run lint
50​
51 - name: Typecheck
52 run: bun run typecheck
53​
54 - name: Test
55 run: bun run test
56​
57 - name: Install browser test runtime
58 run: |
59 cd apps/web
60 bunx playwright install --with-deps chromium
61​
62 - name: Browser test
63 run: bun run --cwd apps/web test:browser
64​
65 - name: Build desktop pipeline
66 run: bun run build:desktop
67​
68 - name: Verify preload bundle output
69 run: |
70 test -f apps/desktop/dist-electron/preload.js
71 grep -nE "desktopBridge|getWsUrl|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.js