Skip to content

QA

QA #6

Workflow file for this run

name: QA
on:
workflow_dispatch:
inputs:
version:
description: 'Package version to test'
required: true
jobs:
unit-tests:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-20.04, ubuntu-22.04, windows-2019, macos-11, macos-12]
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: |
cd example
npm install nobind17@${{ github.event.inputs.version }}
npm install node-gyp
cp node_modules/node-addon-api/except.gypi .
npx node-gyp configure build
node -p "require('./build/Release/hello.node').hello('Garga')"
shell: bash