Skip to content

Add examples and some docs for RPC of the node and wallet #5557

Add examples and some docs for RPC of the node and wallet

Add examples and some docs for RPC of the node and wallet #5557

Workflow file for this run

name: Wasm build and test
on:
push:
branches:
- "**" # target all branches
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
RUST_BACKTRACE: full
jobs:
wasm_with_nodejs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Install rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build the wasm module
working-directory: ./wasm-crypto
run: wasm-pack build --target nodejs
- name: Run the tests
working-directory: ./wasm-crypto
run: node js-bindings/node-entry.js