Skip to content

badge-maker: replace anafanafo with pretext for measurement #14043

badge-maker: replace anafanafo with pretext for measurement

badge-maker: replace anafanafo with pretext for measurement #14043

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