Skip to content

ci: test examples as well in wasm #8

ci: test examples as well in wasm

ci: test examples as well in wasm #8

Workflow file for this run

name: Rust WASM
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test WASM in browser
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
target: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Run tests
run: wasm-pack test --headless --chrome
- name: Run Examples
run: wasm-pack test --headless --chrome --all-features --examples
clippy:
name: Clippy WASM
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
target: wasm32-unknown-unknown
components: clippy
- name: Linting
run: cargo clippy --target="wasm32-unknown-unknown" -- -D warnings