Skip to content

say that 3.x also made transparent BMPs opaque #482

say that 3.x also made transparent BMPs opaque

say that 3.x also made transparent BMPs opaque #482

Workflow file for this run

name: node
# tests every pushed branch in Node, Deno, Bun, edge runtimes and Chromium, and pull requests from forks (pull requests from branches of this repository are
# already tested by their push); release.yml runs it before publishing
on:
push:
branches: ['**']
pull_request:
workflow_call:
# a newer push to the same branch cancels the tests of the previous one
concurrency:
group: node-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name != 'release' }}
# the jobs only install, build and test
permissions:
contents: read
jobs:
build:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
name: node ${{ matrix.version }} | ${{ matrix.os }}
strategy:
matrix:
# the oldest supported version, the middle one and the newest on Linux; macOS (arm64) and Windows (line endings,
# timers) with the newest only: the library is plain JavaScript, so those are about the tests' files and the CPU
version: [22.13.0, 24.x, 26.x]
os: [ubuntu-latest]
include:
- { version: 26.x, os: macos-latest }
- { version: 26.x, os: windows-latest }
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.version }}
- run: npm install
- run: npm test
lint:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24.x
- run: npm install
- run: npm run lint
# the same tests in Deno and Bun (built with node, run by tests/run.js in the runtime running it)
runtimes:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
name: ${{ matrix.runtime }} | ${{ matrix.os }}
strategy:
matrix:
runtime: [deno, bun]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24.x
- if: matrix.runtime == 'deno'
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- if: matrix.runtime == 'bun'
uses: oven-sh/setup-bun@v2
- run: npm install
- run: npm run build
- if: matrix.runtime == 'deno'
run: deno run -A tests/run.js
- if: matrix.runtime == 'bun'
run: bun tests/run.js
# (JSR type checks the sources with Deno's TypeScript, stricter than ours: what release.yml would publish)
- if: matrix.runtime == 'deno' && matrix.os == 'ubuntu-latest'
run: deno publish --dry-run --allow-dirty
# edge runtimes (Cloudflare's workerd, with and without Node.js compatibility, and Vercel's Edge Runtime) and Chromium
# (bundled by Vite, threads with cross-origin isolation, without them otherwise), bundled like deployments
edge:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24.x
- run: npm install
- run: npm run build
# (esbuild's and workerd's postinstall scripts only check their binaries, which come with their platform packages)
- run: npm install --no-save --ignore-scripts esbuild@0.28.2 miniflare@4.20260730.0 edge-runtime@4.0.1
- run: node tests/edge/run.mjs
browser:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24.x
- run: npm install
- run: npm run build
- run: npm install --no-save --ignore-scripts vite@8.3.8 playwright@1.65.0
# (the runner image has the libraries Chromium needs: --with-deps only added fonts through apt, which the tests
# don't use, and failed the job whenever the Ubuntu mirrors were unreachable)
- run: npx playwright install chromium
- run: node tests/browser/run.mjs