Skip to content

fix: build pkg from wasm before testing #60

fix: build pkg from wasm before testing

fix: build pkg from wasm before testing #60

Workflow file for this run

name: Build-Test
on: push
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
run: rustup show
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Build Rust binary
run: cargo build --release
- name: Test Rust binary
run: cargo test --release
- name: Build pkg from WASM
run: wasm-pack build --target web
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: JS WASM Tests
run: bun test