From 18179fc2c124489ca57658fb5ef29fc4927324dd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 19 Feb 2026 08:58:56 +0000 Subject: [PATCH] ci: move bun push-skip condition out of job-level matrix if --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b14e2d439a..efaf8039a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -192,23 +192,28 @@ jobs: task: test command: pnpm canvas:a2ui:bundle && bunx vitest run --config vitest.unit.config.ts steps: + - name: Skip bun lane on push + if: github.event_name == 'push' && matrix.runtime == 'bun' + run: echo "Skipping bun test lane on push events." + - name: Checkout + if: github.event_name != 'push' || matrix.runtime != 'bun' uses: actions/checkout@v4 with: submodules: false - name: Setup Node environment - uses: ./.github/actions/setup-node-env if: matrix.runtime != 'bun' || github.event_name != 'push' + uses: ./.github/actions/setup-node-env with: install-bun: "${{ matrix.runtime == 'bun' }}" - name: Configure vitest JSON reports - if: matrix.task == 'test' && matrix.runtime == 'node' + if: (github.event_name != 'push' || matrix.runtime != 'bun') && matrix.task == 'test' && matrix.runtime == 'node' run: echo "OPENCLAW_VITEST_REPORT_DIR=$RUNNER_TEMP/vitest-reports" >> "$GITHUB_ENV" - name: Configure Node test resources - if: matrix.task == 'test' && matrix.runtime == 'node' + if: (github.event_name != 'push' || matrix.runtime != 'bun') && matrix.task == 'test' && matrix.runtime == 'node' run: | # `pnpm test` runs `scripts/test-parallel.mjs`, which spawns multiple Node processes. # Default heap limits have been too low on Linux CI (V8 OOM near 4GB). @@ -220,13 +225,13 @@ jobs: run: ${{ matrix.command }} - name: Summarize slowest tests - if: matrix.task == 'test' && matrix.runtime == 'node' + if: (github.event_name != 'push' || matrix.runtime != 'bun') && matrix.task == 'test' && matrix.runtime == 'node' run: | node scripts/vitest-slowest.mjs --dir "$OPENCLAW_VITEST_REPORT_DIR" --top 50 --out "$RUNNER_TEMP/vitest-slowest.md" > /dev/null echo "Slowest test summary written to $RUNNER_TEMP/vitest-slowest.md" - name: Upload vitest reports - if: matrix.task == 'test' && matrix.runtime == 'node' + if: (github.event_name != 'push' || matrix.runtime != 'bun') && matrix.task == 'test' && matrix.runtime == 'node' uses: actions/upload-artifact@v4 with: name: vitest-reports-${{ runner.os }}-${{ matrix.runtime }}