-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 950 Bytes
/
test-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 }}