| ... | ... | @@ -7,8 +7,8 @@ on: |
| 7 | 7 | - main |
| 8 | 8 | |
| 9 | 9 | jobs: |
| 10 | | quality: |
| 11 | | name: Format, Lint, Typecheck, Test, Browser Test, Build |
| 10 | check: |
| 11 | name: Check |
| 12 | 12 | runs-on: blacksmith-8vcpu-ubuntu-2404 |
| 13 | 13 | timeout-minutes: 10 |
| 14 | 14 | steps: |
| ... | ... | @@ -22,14 +22,6 @@ jobs: |
| 22 | 22 | cache: true |
| 23 | 23 | run-install: true |
| 24 | 24 | |
| 25 | | - name: Cache Playwright browsers |
| 26 | | uses: actions/cache@v5 |
| 27 | | with: |
| 28 | | path: ~/.cache/ms-playwright |
| 29 | | key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }} |
| 30 | | restore-keys: | |
| 31 | | ${{ runner.os }}-playwright- |
| 32 | | |
| 33 | 25 | - name: Ensure Electron runtime is installed |
| 34 | 26 | run: vp run --filter @t3tools/desktop ensure:electron |
| 35 | 27 | |
| ... | ... | @@ -37,11 +29,60 @@ jobs: |
| 37 | 29 | run: vp check |
| 38 | 30 | |
| 39 | 31 | - name: Typecheck |
| 40 | | run: vp run typecheck |
| 32 | run: vpr typecheck |
| 33 | |
| 34 | - name: Build desktop pipeline |
| 35 | run: vp run build:desktop |
| 36 | |
| 37 | - name: Verify preload bundle output |
| 38 | run: | |
| 39 | test -f apps/desktop/dist-electron/preload.cjs |
| 40 | grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs |
| 41 | |
| 42 | test: |
| 43 | name: Test |
| 44 | runs-on: blacksmith-8vcpu-ubuntu-2404 |
| 45 | timeout-minutes: 10 |
| 46 | steps: |
| 47 | - name: Checkout |
| 48 | uses: actions/checkout@v6 |
| 49 | |
| 50 | - name: Setup Vite+ |
| 51 | uses: voidzero-dev/setup-vp@v1 |
| 52 | with: |
| 53 | node-version-file: package.json |
| 54 | cache: true |
| 55 | run-install: true |
| 56 | |
| 57 | - name: Ensure Electron runtime is installed |
| 58 | run: vp run --filter @t3tools/desktop ensure:electron |
| 41 | 59 | |
| 42 | 60 | - name: Test |
| 43 | 61 | run: vp run test |
| 44 | 62 | |
| 63 | test_browser: |
| 64 | name: Test Browser |
| 65 | runs-on: blacksmith-8vcpu-ubuntu-2404 |
| 66 | timeout-minutes: 10 |
| 67 | steps: |
| 68 | - name: Checkout |
| 69 | uses: actions/checkout@v6 |
| 70 | |
| 71 | - name: Setup Vite+ |
| 72 | uses: voidzero-dev/setup-vp@v1 |
| 73 | with: |
| 74 | node-version-file: package.json |
| 75 | cache: true |
| 76 | run-install: true |
| 77 | |
| 78 | - name: Cache Playwright browsers |
| 79 | uses: actions/cache@v5 |
| 80 | with: |
| 81 | path: ~/.cache/ms-playwright |
| 82 | key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }} |
| 83 | restore-keys: | |
| 84 | ${{ runner.os }}-playwright- |
| 85 | |
| 45 | 86 | - name: Install browser test runtime |
| 46 | 87 | run: vp run --filter @t3tools/web test:browser:install |
| 47 | 88 | |
| ... | ... | @@ -65,14 +106,6 @@ jobs: |
| 65 | 106 | src/components/chat/CompactComposerControlsMenu.browser.tsx \ |
| 66 | 107 | src/components/settings/SettingsPanels.browser.tsx |
| 67 | 108 | |
| 68 | | - name: Build desktop pipeline |
| 69 | | run: vp run build:desktop |
| 70 | | |
| 71 | | - name: Verify preload bundle output |
| 72 | | run: | |
| 73 | | test -f apps/desktop/dist-electron/preload.cjs |
| 74 | | grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs |
| 75 | | |
| 76 | 109 | mobile_native_static_analysis: |
| 77 | 110 | name: Mobile Native Static Analysis |
| 78 | 111 | runs-on: blacksmith-12vcpu-macos-26 |