Skip to content

Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.

CI: tests and end-to-end renders on Linux and Windows

StaryOned12a63cd27f4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..0832cd9
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,40 @@
+# Runs the tests, the end-to-end renders among them, on Linux and Windows with the runner's own Chrome. The runners
+# have no GPU, so Chrome draws in software and encodes with its software H.264 encoder.
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ci-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
+ timeout-minutes: 20
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version: 24
+ cache: npm
+ - name: ffmpeg (Linux)
+ if: runner.os == 'Linux'
+ run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ffmpeg
+ - name: ffmpeg (Windows)
+ if: runner.os == 'Windows'
+ run: choco install ffmpeg -y --no-progress
+ - run: npm ci --no-audit --no-fund
+ - run: node bin/motlab.js doctor
+ - run: npm test