Skip to content

Explainer videos and product demos made by your AI agent. Free and open source: a local voice (Kokoro), word timing (Whisper) and a canvas renderer turn a script into a narrated MP4.

Run the macOS tests one file at a time in CI (#30)

Vincent Schmalbach6944856c7bfc
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index fc397cc..e21a393 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -41,5 +41,7 @@ jobs:
run: node bin/explainroo.js doctor
continue-on-error: true
# A test that hangs fails after three minutes with its name, and
- # leftover browser processes do not keep the run open.
- - run: node --test --test-timeout=180000 --test-force-exit test/*.test.js
+ # leftover browser processes do not keep the run open. The macOS
+ # runners have three cores, and two test files rendering at once
+ # starve Chrome and ffmpeg there, so they run one file at a time.
+ - run: node --test --test-timeout=180000 --test-force-exit ${{ runner.os == 'macOS' && '--test-concurrency=1' || '' }} test/*.test.js