fix(bun-compile): replace build-time patches with source-level VFS ch… #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Bun | |
| on: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ci-bun-push-${{ github.run_id }} | |
| cancel-in-progress: false | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| jobs: | |
| build-bun-artifacts: | |
| runs-on: blacksmith-16vcpu-ubuntu-2404 | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: false | |
| - name: Setup Node environment | |
| uses: ./.github/actions/setup-node-env | |
| with: | |
| install-bun: "false" | |
| use-sticky-disk: "false" | |
| - name: Build A2UI bundle | |
| run: pnpm canvas:a2ui:bundle | |
| - name: Upload A2UI bundle artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: canvas-a2ui-bundle | |
| path: src/canvas-host/a2ui/ | |
| bun-checks: | |
| needs: [build-bun-artifacts] | |
| runs-on: blacksmith-16vcpu-ubuntu-2404 | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - shard_index: 1 | |
| shard_count: 2 | |
| command: OPENCLAW_TEST_ISOLATE=1 bunx vitest run --config vitest.unit.config.ts --shard 1/2 | |
| - shard_index: 2 | |
| shard_count: 2 | |
| command: OPENCLAW_TEST_ISOLATE=1 bunx vitest run --config vitest.unit.config.ts --shard 2/2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: false | |
| - name: Setup Node environment | |
| uses: ./.github/actions/setup-node-env | |
| with: | |
| install-bun: "true" | |
| use-sticky-disk: "false" | |
| - name: Download A2UI bundle artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: canvas-a2ui-bundle | |
| path: src/canvas-host/a2ui/ | |
| - name: Run Bun test shard | |
| run: ${{ matrix.command }} |