name: Rust
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jetli/wasm-pack-action@v0.4.0
with:
version: 'latest'
- name: Format
run: cargo fmt --all --check
- name: Build
run: cargo build --verbose
- name: Run tests for standard
run: cargo test --verbose
- name: Run tests for web
run: wasm-pack test --node