Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Let’s demonstrate that Node.js 16 pass the tests #16

Let’s demonstrate that Node.js 16 pass the tests

Let’s demonstrate that Node.js 16 pass the tests #16

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x, 20.x, latest]
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: |
node-gyp --version || true
gyp --version || true
npm config list -l
npm install --global node-gyp@latest
node-gyp --version
npm config set node_gyp $(npm prefix -g)/lib/node_modules/node-gyp/bin/node-gyp.js
node-gyp --version
- name: install dependencies and test
shell: bash
run: |
npm install
npm test
- name: build with node-gyp
shell: bash
run: |
# npm install -g node-gyp
node-gyp configure
node-gyp rebuild