feat: do not add http3 as it's unstable #70
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: | |
- develop | |
workflow_call: | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: --cfg getrandom_backend="wasm_js" | |
jobs: | |
test_in_browser: | |
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_wasm: | |
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 |