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

40 lines
892 B
YAML
Raw 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}}
- 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