From f2c37e543e4f3c1a5fb03ee2b33dbb070304e427 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 2 Mar 2026 18:58:32 -0800 Subject: [PATCH] CI: optimize Windows lane by splitting bundle and dropping duplicate lanes --- .github/workflows/ci.yml | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83bddecb505..ea4644a7039 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -344,26 +344,16 @@ jobs: fail-fast: false matrix: include: - - runtime: node - task: lint - shard_index: 0 - shard_count: 1 - command: pnpm lint - runtime: node task: test shard_index: 1 shard_count: 2 - command: pnpm canvas:a2ui:bundle && pnpm test + command: pnpm test - runtime: node task: test shard_index: 2 shard_count: 2 - command: pnpm canvas:a2ui:bundle && pnpm test - - runtime: node - task: protocol - shard_index: 0 - shard_count: 1 - command: pnpm protocol:check + command: pnpm test steps: - name: Checkout uses: actions/checkout@v4 @@ -389,20 +379,6 @@ jobs: Write-Warning "Failed to apply Defender exclusions, continuing. $($_.Exception.Message)" } - - name: Download dist artifact (lint lane) - if: matrix.task == 'lint' - uses: actions/download-artifact@v4 - with: - name: dist-build - path: dist/ - - - name: Verify dist artifact (lint lane) - if: matrix.task == 'lint' - run: | - set -euo pipefail - test -s dist/index.js - test -s dist/plugin-sdk/index.js - - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: @@ -440,6 +416,10 @@ jobs: echo "OPENCLAW_TEST_SHARDS=${{ matrix.shard_count }}" >> "$GITHUB_ENV" echo "OPENCLAW_TEST_SHARD_INDEX=${{ matrix.shard_index }}" >> "$GITHUB_ENV" + - name: Build A2UI bundle (Windows) + if: matrix.task == 'test' + run: pnpm canvas:a2ui:bundle + - name: Run ${{ matrix.task }} (${{ matrix.runtime }}) run: ${{ matrix.command }}