From 7525999a9db916030f4e8d696b88ffdfe7d74733 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 3 Jun 2026 22:43:39 -0700 Subject: [PATCH] split ci workflow jobs --- .github/workflows/ci.yml | 71 +++++++++++++++++++++++++++++----------- pnpm-lock.yaml | 3 ++ scripts/package.json | 3 +- 3 files changed, 57 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb1a0d75c3f..b4f0eef0c1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,8 @@ on: - main jobs: - quality: - name: Format, Lint, Typecheck, Test, Browser Test, Build + check: + name: Check runs-on: blacksmith-8vcpu-ubuntu-2404 timeout-minutes: 10 steps: @@ -22,14 +22,6 @@ jobs: cache: true run-install: true - - name: Cache Playwright browsers - uses: actions/cache@v5 - with: - path: ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-playwright- - - name: Ensure Electron runtime is installed run: vp run --filter @t3tools/desktop ensure:electron @@ -37,11 +29,60 @@ jobs: run: vp check - name: Typecheck - run: vp run typecheck + run: vpr typecheck + + - name: Build desktop pipeline + run: vp run build:desktop + + - name: Verify preload bundle output + run: | + test -f apps/desktop/dist-electron/preload.cjs + grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs + + test: + name: Test + runs-on: blacksmith-8vcpu-ubuntu-2404 + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@v1 + with: + node-version-file: package.json + cache: true + run-install: true + + - name: Ensure Electron runtime is installed + run: vp run --filter @t3tools/desktop ensure:electron - name: Test run: vp run test + test_browser: + name: Test Browser + runs-on: blacksmith-8vcpu-ubuntu-2404 + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@v1 + with: + node-version-file: package.json + cache: true + run-install: true + + - name: Cache Playwright browsers + uses: actions/cache@v5 + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-playwright- + - name: Install browser test runtime run: vp run --filter @t3tools/web test:browser:install @@ -65,14 +106,6 @@ jobs: src/components/chat/CompactComposerControlsMenu.browser.tsx \ src/components/settings/SettingsPanels.browser.tsx - - name: Build desktop pipeline - run: vp run build:desktop - - - name: Verify preload bundle output - run: | - test -f apps/desktop/dist-electron/preload.cjs - grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs - mobile_native_static_analysis: name: Mobile Native Static Analysis runs-on: blacksmith-12vcpu-macos-26 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f2078ec83fb..ad8b3370798 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -752,6 +752,9 @@ importers: effect: specifier: 4.0.0-beta.73 version: 4.0.0-beta.73(patch_hash=a28d840fa97ffebabe628e5562837c537d83c40cfdad8049de73c38086f2fb01) + yaml: + specifier: ^2.9.0 + version: 2.9.0 devDependencies: '@effect/vitest': specifier: 4.0.0-beta.73 diff --git a/scripts/package.json b/scripts/package.json index cc7dc04a887..e4420bd80ee 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -11,7 +11,8 @@ "@effect/platform-node": "catalog:", "@t3tools/contracts": "workspace:*", "@t3tools/shared": "workspace:*", - "effect": "catalog:" + "effect": "catalog:", + "yaml": "catalog:" }, "devDependencies": { "@effect/vitest": "catalog:",