44 push :
55 branches :
66 - dev
7+ - production
78 pull_request :
89 workflow_dispatch :
910
3132 host : blacksmith-4vcpu-ubuntu-2404
3233 - name : windows
3334 host : blacksmith-4vcpu-windows-2025
34- runs-on : ${{ matrix.settings.host }}
35+ runs-on : ${{ github.repository == 'anomalyco/opencode' && matrix.settings.host || (matrix.settings.name == 'windows' && 'windows-latest' || 'ubuntu-latest') }}
3536 defaults :
3637 run :
3738 shell : bash
5455 git config --global user.email "bot@opencode.ai"
5556 git config --global user.name "opencode"
5657
58+ - name : Install ripgrep
59+ if : runner.os == 'Windows'
60+ run : choco install ripgrep --version 15.1.0 --yes --no-progress
61+
5762 - name : Cache Turbo
5863 uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5964 with :
6570
6671 - name : Run unit tests
6772 timeout-minutes : 20
68- run : GITHUB_ACTIONS=false bun turbo test
73+ run : GITHUB_ACTIONS=false bun turbo test --concurrency=${{ github.repository == 'anomalyco/opencode' && '10' || '2' }}
6974 env :
7075 OPENCODE_EXPERIMENTAL_DISABLE_FILEWATCHER : ${{ runner.os == 'Windows' && 'true' || 'false' }}
7176
8994 host : blacksmith-4vcpu-ubuntu-2404
9095 - name : windows
9196 host : blacksmith-4vcpu-windows-2025
92- runs-on : ${{ matrix.settings.host }}
97+ runs-on : ${{ github.repository == 'anomalyco/opencode' && matrix.settings.host || (matrix.settings.name == 'windows' && 'windows-latest' || 'ubuntu-latest') }}
9398 env :
9499 PLAYWRIGHT_BROWSERS_PATH : ${{ github.workspace }}/.playwright-browsers
100+ PLAYWRIGHT_WORKERS : ${{ github.repository == 'anomalyco/opencode' && '5' || '2' }}
95101 defaults :
96102 run :
97103 shell : bash
@@ -101,15 +107,12 @@ jobs:
101107 with :
102108 token : ${{ secrets.GITHUB_TOKEN }}
103109
104- - name : Setup Node
105- uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
110+ - name : Setup Bun
111+ uses : ./.github/ actions/setup-bun
106112 with :
107113 # Playwright 1.59 hangs while extracting Chromium with Node 24.16.
108114 node-version : " 24.15"
109115
110- - name : Setup Bun
111- uses : ./.github/actions/setup-bun
112-
113116 - name : Read Playwright version
114117 id : playwright-version
115118 run : |
0 commit comments