0.4.2 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |