badge-maker: replace anafanafo with pretext for measurement #14043
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Package Library | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| push: | |
| branches-ignore: | |
| - 'gh-pages' | |
| - 'dependabot/**' | |
| jobs: | |
| test-package-lib: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - node: '20' | |
| npm: '^10' | |
| engine-strict: 'false' | |
| - node: '22' | |
| npm: '11.11.1' | |
| engine-strict: 'true' | |
| - node: '24' | |
| npm: '11.11.1' | |
| engine-strict: 'false' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| node-version: ${{ matrix.node }} | |
| npm-version: ${{ matrix.npm }} | |
| env: | |
| NPM_CONFIG_ENGINE_STRICT: ${{ matrix.engine-strict }} | |
| - name: Install fonts for text measurement | |
| run: | | |
| echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections | |
| sudo apt-get update | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
| ttf-mscorefonts-installer | |
| - name: Download fonts | |
| run: node scripts/download-fonts.js | |
| - name: Package tests | |
| uses: ./.github/actions/package-tests |