Skip to content

Commit fd95d45

Browse files
committed
🤖 Add macOS runtime integration tests to CI
Add a dedicated CI job to run runtime integration tests on macOS. The main integration suite already covers Linux runtime tests, but we run runtime tests on macOS specifically because this code is particularly prone to system incompatibilities (process spawning, stream handling, file operations). Running the full integration suite on a matrix would be wasteful - we only need to verify runtime behavior across platforms. _Generated with `cmux`_
1 parent ff3e975 commit fd95d45

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,38 @@ jobs:
108108
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
109109
steps:
110110
- name: Checkout code
111+
112+
# Runtime Integration Tests (macOS)
113+
# The main integration suite covers Linux runtime tests already. We only run runtime tests
114+
# on macOS because this part of the code is particularly prone to system incompatibilities
115+
# (process spawning, stream handling, file operations). Running the full integration suite
116+
# on a matrix would be wasteful.
117+
integration-tests-runtime-macos:
118+
name: Runtime Integration Tests (macOS)
119+
runs-on: macos-latest
120+
steps:
121+
- uses: actions/checkout@v4
122+
123+
- name: Setup Bun
124+
uses: oven-sh/setup-bun@v2
125+
126+
- name: Install dependencies
127+
run: bun install --frozen-lockfile
128+
129+
- name: Load .env
130+
run: |
131+
if [ -f .env ]; then
132+
set -a
133+
source .env
134+
set +a
135+
fi
136+
137+
- name: Run runtime integration tests
138+
run: TEST_INTEGRATION=1 bun x jest tests/runtime/runtime.test.ts
139+
env:
140+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
141+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
142+
111143
uses: actions/checkout@v4
112144
with:
113145
fetch-depth: 0 # Required for git describe to find tags

0 commit comments

Comments
 (0)