feat(mermaid): add terminal diagram renderer #4955
Workflow file for this run
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: Build Solid | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| NODE_VERSION: 26.4.0 | |
| jobs: | |
| bun-test: | |
| name: Bun Test (${{ matrix.os }}) | |
| strategy: | |
| matrix: | |
| os: [blacksmith-8vcpu-ubuntu-2404, blacksmith-8vcpu-windows-2025] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.16.0 | |
| use-cache: false | |
| - name: Restore Zig cache | |
| if: runner.os != 'Windows' | |
| uses: actions/cache@v5 | |
| with: | |
| path: .zig-cache | |
| key: zig-v1-${{ runner.os }}-0.16.0-${{ github.run_id }}-${{ github.job }} | |
| restore-keys: zig-v1-${{ runner.os }}-0.16.0- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build core | |
| working-directory: packages/core | |
| run: bun run build | |
| - name: Build | |
| working-directory: packages/solid | |
| run: bun run build --ci | |
| - name: Run tests | |
| working-directory: packages/solid | |
| run: bun run test | |
| node-source: | |
| name: Node Source Lane | |
| runs-on: blacksmith-8vcpu-ubuntu-2404 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.16.0 | |
| use-cache: false | |
| - name: Restore Zig cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: .zig-cache | |
| key: zig-v1-${{ runner.os }}-0.16.0-${{ github.run_id }}-${{ github.job }} | |
| restore-keys: zig-v1-${{ runner.os }}-0.16.0- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build core | |
| working-directory: packages/core | |
| run: bun run build | |
| - name: Build solid | |
| working-directory: packages/solid | |
| run: bun run build --ci | |
| - name: Run Node source lane | |
| working-directory: packages/solid | |
| run: bun run test:js:node | |
| packed-consumer: | |
| name: Packed Consumer Smoke | |
| runs-on: blacksmith-8vcpu-ubuntu-2404 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.16.0 | |
| use-cache: false | |
| - name: Restore Zig cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: .zig-cache | |
| key: zig-v1-${{ runner.os }}-0.16.0-${{ github.run_id }}-${{ github.job }} | |
| restore-keys: zig-v1-${{ runner.os }}-0.16.0- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build core | |
| working-directory: packages/core | |
| run: bun run build | |
| - name: Build solid | |
| working-directory: packages/solid | |
| run: bun run build --ci | |
| - name: Run packed consumer smoke test | |
| working-directory: packages/solid | |
| run: bun run test:dist --skip-build | |
| # Gate job for branch protection | |
| build-complete: | |
| name: Solid - Build and Test | |
| needs: [bun-test, node-source, packed-consumer] | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| if: always() | |
| steps: | |
| - name: Check test results | |
| run: | | |
| if [ "${{ needs.bun-test.result }}" != "success" ]; then | |
| echo "Bun tests failed" | |
| exit 1 | |
| fi | |
| if [ "${{ needs.node-source.result }}" != "success" ]; then | |
| echo "Node source lane failed" | |
| exit 1 | |
| fi | |
| if [ "${{ needs.packed-consumer.result }}" != "success" ]; then | |
| echo "Packed consumer smoke test failed" | |
| exit 1 | |
| fi | |
| echo "All tests passed" |