Skip to content

0.4.2

0.4.2 #164

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Install Node 23
uses: actions/setup-node@v4
with:
node-version: 23
- name: Run cargo check
run: cargo check --target=wasm32-unknown-unknown
- name: Run cargo test
run: cargo test --target=x86_64-unknown-linux-gnu
env:
RUSTFLAGS: ""
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Test on Node
run: wasm-pack test --node
- name: Test on Chrome
run: wasm-pack test --headless --chrome
- name: Test on Firefox
run: wasm-pack test --headless --firefox
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
components: rustfmt, clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --target=wasm32-unknown-unknown