diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4bcf553..a8b1e7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,6 +42,29 @@ jobs: - name: Markdown lint run: bun run validate:md + - name: Install ImageMagick (with magick v7 dispatcher wrapper) + run: | + sudo apt-get update + sudo apt-get install -y imagemagick + # Ubuntu ships ImageMagick 6 (separate binaries: convert, identify, etc.). + # build-demo-manifest.ts and its test use the v7 multi-call entrypoint + # (magick, magick identify, ...). Install a small dispatcher at + # /usr/local/bin/magick that forwards to the v6 binary by subcommand. + sudo tee /usr/local/bin/magick > /dev/null <<'WRAPPER' + #!/bin/bash + case "$1" in + identify|convert|mogrify|composite|montage|compare|conjure|stream|display|animate|import) + cmd="$1"; shift; exec "$cmd" "$@" ;; + *) + exec convert "$@" ;; + esac + WRAPPER + sudo chmod +x /usr/local/bin/magick + magick -version | head -1 + + - name: Install Playwright Chromium (browser-audit) + run: bunx playwright install --with-deps chromium + - name: Run tests run: bun run test