Skip to content

Test release

Test release #13

Workflow file for this run

name: Test release
on:
release:
types: [published]
workflow_dispatch:
inputs:
testConcurrency:
description: 'Check that parallel tests run in parallel (requires real CPUs)'
required: false
default: '0'
jobs:
test_published:
runs-on: ${{ matrix.platforms }}
strategy:
matrix:
platforms: [ ubuntu-20.04, ubuntu-20.04, windows-2019, macos-12, macos-14 ]
node-version: [ 18.x, 20.x, 22.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-python@v5
with:
python-version: 3.11
- run: npm install --ignore-scripts
- run: npx @mapbox/node-pre-gyp install
- name: Run unit tests
run: npm test
env:
MOCHA_TEST_CONCURRENCY: ${{ github.event.inputs.testConcurrency }}