diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0916d0..f45d56d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,16 @@ jobs: - run: pnpm install --frozen-lockfile + # mermaid-export renders through puppeteer, which needs a real Chrome. The + # browser normally arrives via puppeteer's postinstall script, which does not + # run here, so eleven of its tests failed with "Could not find Chrome (ver. …)". + # + # Filtered to the one package that depends on puppeteer. A bare `pnpm exec` runs + # from the workspace root, where the binary does not exist, and fails with + # "Command \"puppeteer\" not found" before it reaches the package that has it. + - name: Install Chrome for puppeteer + run: pnpm --filter mermaid-export exec puppeteer browsers install chrome + - name: Typecheck run: pnpm typecheck