diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb1a0d75c3fc60bcdc60a9e0d0d28965d06032e6..b4f0eef0c1e8b62472acfcd9fb17af917a21da87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,61 @@ 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: + - 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: Check + run: vp check + + - name: 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: @@ -30,18 +83,6 @@ jobs: restore-keys: | ${{ runner.os }}-playwright- - - name: Ensure Electron runtime is installed - run: vp run --filter @t3tools/desktop ensure:electron - - - name: Check - run: vp check - - - name: Typecheck - run: vp run typecheck - - - name: Test - run: vp run test - - 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 f2078ec83fb57b0ce5e2d57522955eab57149383..ad8b3370798deff058e080471602d1521617b1c7 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 cc7dc04a88748f44209f35021d465650c6e10f15..e4420bd80eeed432911af9b6dc2de0c9309ccbb3 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:",