From 4d4d6df02c119fa420c2379ad7db8eb63ace3bf1 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Fri, 29 May 2026 07:04:46 -0700 Subject: [PATCH] ci(make-pdf): install emoji font + run emoji gate on Ubuntu Install fonts-noto-color-emoji before Chromium launches on the Ubuntu leg (macOS already ships Apple Color Emoji), refresh fontconfig, and log the fc-match result. Run the whole make-pdf/test/e2e/ dir so the emoji gate runs alongside the combined-features copy-paste gate. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/make-pdf-gate.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/make-pdf-gate.yml b/.github/workflows/make-pdf-gate.yml index 60d9a1405..769fccd2b 100644 --- a/.github/workflows/make-pdf-gate.yml +++ b/.github/workflows/make-pdf-gate.yml @@ -51,6 +51,15 @@ jobs: if: matrix.os == 'ubicloud-standard-8' run: sudo apt-get update && sudo apt-get install -y poppler-utils + # Install a color-emoji font BEFORE Chromium launches so the emoji render + # gate has a fallback font. macOS ships Apple Color Emoji already. + - name: Install color-emoji font (Ubuntu) + if: matrix.os == 'ubicloud-standard-8' + run: | + sudo apt-get install -y fonts-noto-color-emoji + fc-cache -f || true + fc-match -f '%{family[0]}\t%{color}\n' ':lang=und-zsye:charset=1F600' || true + - name: Install Playwright Chromium run: bunx playwright install chromium @@ -74,7 +83,7 @@ jobs: - name: Run make-pdf unit tests run: bun test make-pdf/test/*.test.ts - - name: Run combined-features copy-paste gate (P0) + - name: Run E2E gates (combined-features copy-paste + emoji render) env: BROWSE_BIN: ${{ github.workspace }}/browse/dist/browse - run: bun test make-pdf/test/e2e/combined-gate.test.ts + run: bun test make-pdf/test/e2e/