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.

Fail a hung test after three minutes in CI (#27)

Vincent Schmalbach774865ca965d
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index bd99be0..fc397cc 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,6 +12,7 @@ jobs:
test:
name: ${{ matrix.os }}, Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
+ timeout-minutes: 25
strategy:
fail-fast: false
matrix:
@@ -39,4 +40,6 @@ jobs:
- name: Check the setup
run: node bin/explainroo.js doctor
continue-on-error: true
- - run: npm test
+ # 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
diff --git a/README.md b/README.md
index b3f7768..5d97164 100644
--- a/README.md
+++ b/README.md
@@ -153,8 +153,8 @@ unofficial demos of [Gmail, ChatGPT and Claude](https://www.explainroo.com/video
You need Node.js 20.11 or newer, ffmpeg, and Chrome or Chromium. The first
setup downloads the voice and timing models once, about 400 MB together. You
-don't need a graphics card. I develop and test explainroo on Linux. It should
-work on macOS and Windows, but I have tested it less there.
+don't need a graphics card. I develop explainroo on Linux, and its tests run
+on Linux, macOS and Windows for every change.
```bash
git clone https://github.com/vincentsch/explainroo.git