c-kzg-4844/.github/workflows/nodejs-tests.yml

48 lines
1.1 KiB
YAML
Raw Permalink Normal View History

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}}
2024-04-29 16:04:45 +00:00
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install setuptools
2024-04-29 15:56:02 +00:00
run: |
python -m pip install --upgrade pip
pip install setuptools
- 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
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