2023-03-13 10:42:12 +00:00
|
|
|
name: NodeJS
|
2022-11-22 20:43:15 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-03-30 21:34:55 +00:00
|
|
|
tests:
|
2023-03-28 16:01:07 +00:00
|
|
|
runs-on: ${{matrix.os}}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macos-latest
|
|
|
|
- windows-latest
|
|
|
|
node:
|
|
|
|
- 16
|
|
|
|
- 18
|
2022-11-22 20:43:15 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-03-28 16:01:07 +00:00
|
|
|
- name: Setup Node.js ${{matrix.node}}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{matrix.node}}
|
2023-11-13 19:30:30 +00:00
|
|
|
- name: Install setuptools
|
|
|
|
run: python3 -m pip install setuptools
|
2023-03-30 16:20:25 +00:00
|
|
|
- name: Check formatting
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
working-directory: bindings/node.js
|
|
|
|
run: make format
|
2023-03-28 16:01:07 +00:00
|
|
|
- name: Build/test bindings
|
|
|
|
working-directory: bindings/node.js
|
2023-03-30 16:20:25 +00:00
|
|
|
run: make build test bundle
|
2023-03-28 16:01:07 +00:00
|
|
|
- name: Install distribution
|
|
|
|
working-directory: bindings/node.js/dist
|
|
|
|
run: npm install
|