mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-09 22:48:57 +02:00
Bumps the github-actions group with 10 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4` | `7` | | [docker/login-action](https://github.com/docker/login-action) | `3` | `4` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3` | `4` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `6` | `7` | | [actions/dependency-review-action](https://github.com/actions/dependency-review-action) | `4.9.0` | `5.0.0` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `7` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4` | `8` | | [oven-sh/setup-bun](https://github.com/oven-sh/setup-bun) | `1` | `2` | | [actions/cache](https://github.com/actions/cache) | `4` | `6` | | [google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml](https://github.com/google/osv-scanner-action) | `3adb4b14a2b0623876d18d863a498b785fb3752d` | `f4cfcc01edc9c8b756a9b873b7a623ca674da51e` | Updates `actions/checkout` from 4 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v4...v7) Updates `docker/login-action` from 3 to 4 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/v3...v4) Updates `docker/setup-buildx-action` from 3 to 4 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v3...v4) Updates `docker/build-push-action` from 6 to 7 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v6...v7) Updates `actions/dependency-review-action` from 4.9.0 to 5.0.0 - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/2031cfc080254a8a887f58cffee85186f0e49e48...a1d282b36b6f3519aa1f3fc636f609c47dddb294) Updates `actions/upload-artifact` from 4 to 7 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v7) Updates `actions/download-artifact` from 4 to 8 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v8) Updates `oven-sh/setup-bun` from 1 to 2 - [Release notes](https://github.com/oven-sh/setup-bun/releases) - [Commits](https://github.com/oven-sh/setup-bun/compare/v1...v2) Updates `actions/cache` from 4 to 6 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v6) Updates `google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml` from 3adb4b14a2b0623876d18d863a498b785fb3752d to f4cfcc01edc9c8b756a9b873b7a623ca674da51e - [Release notes](https://github.com/google/osv-scanner-action/releases) - [Commits](https://github.com/google/osv-scanner-action/compare/3adb4b14a2b0623876d18d863a498b785fb3752d...f4cfcc01edc9c8b756a9b873b7a623ca674da51e)
96 lines
3.1 KiB
YAML
96 lines
3.1 KiB
YAML
name: make-pdf copy-paste gate
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- 'make-pdf/**'
|
|
- 'lib/diagram-render/**'
|
|
- 'test/diagram-render-drift.test.ts'
|
|
- 'browse/src/meta-commands.ts'
|
|
- 'browse/src/write-commands.ts'
|
|
- 'browse/src/commands.ts'
|
|
- 'browse/src/cli.ts'
|
|
- 'scripts/resolvers/make-pdf.ts'
|
|
- 'package.json'
|
|
- '.github/workflows/make-pdf-gate.yml'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: make-pdf-gate-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
gate:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# macOS only: the Linux leg became redundant when the free-tests lane
|
|
# started running make-pdf/test (incl. e2e/) on every PR via the
|
|
# canonical runner — this gate's remaining value is macOS rendering
|
|
# coverage on make-pdf-scoped changes.
|
|
os: [macos-latest]
|
|
# Windows is tolerant-mode — Xpdf / Poppler-Windows extraction
|
|
# differs enough from the Linux/macOS baseline that the strict
|
|
# exact-diff gate is unreliable. Enable once the normalized
|
|
# comparator proves tolerant enough (Codex round 2 #18).
|
|
#
|
|
# include:
|
|
# - os: windows-latest
|
|
# tolerant: true
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Install poppler (macOS)
|
|
if: matrix.os == 'macos-latest'
|
|
run: brew install poppler
|
|
|
|
- name: Install poppler-utils (Ubuntu)
|
|
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
|
|
|
|
- name: Build binaries
|
|
run: bun run build
|
|
|
|
- name: ad-hoc codesign (Apple Silicon)
|
|
if: matrix.os == 'macos-latest'
|
|
run: |
|
|
for bin in browse/dist/browse browse/dist/find-browse design/dist/design make-pdf/dist/pdf; do
|
|
codesign --remove-signature "$bin" 2>/dev/null || true
|
|
codesign -s - -f "$bin" || true
|
|
done
|
|
|
|
- name: Log toolchain versions
|
|
run: |
|
|
echo "OS: ${{ matrix.os }}"
|
|
bun --version
|
|
which pdftotext && pdftotext -v 2>&1 | head -1 || true
|
|
|
|
- name: Run make-pdf unit tests
|
|
run: bun test make-pdf/test/*.test.ts test/diagram-render-drift.test.ts
|
|
|
|
- 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/
|