Skip to content

ci

ci #155

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- uses: actions/checkout@v4
- run: npm install --exact --no-audit --no-save
env:
ROARING_NODE_PRE_GYP: "false"
- run: npx eslint --no-error-on-unmatched-pattern --max-warnings=0
- run: npx prettier --loglevel=warn --check .
- run: node ./node-pre-gyp.js
env:
ROARING_NODE_PRE_GYP: "custom-rebuild"
- run: node ./scripts/test.js
- run: node --expose-gc ./scripts/test-memory-leaks.js
ci:
needs: test
strategy:
matrix:
node-version: ["16.14.0", "18.1.0", "20.9.0", "21.1.0", "22.8.0"]
os: [ubuntu-latest, macos-13, macos-latest, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4
- run: npm install --exact --no-audit --no-save
env:
ROARING_NODE_PRE_GYP: "false"
- run: node ./node-pre-gyp.js
env:
ROARING_NODE_PRE_GYP: "custom-rebuild"
- run: node ./scripts/test.js