make safe indexing check for prev expressions #393
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: Test | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Cache build | |
uses: Swatinem/rust-cache@v2 | |
- name: Setup | |
run: | | |
cargo install cargo-all-features | |
- name: Check | |
run: cargo check-all-features | |
- name: Test core | |
run: cargo test-all-features | |
test-wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Cache build | |
uses: Swatinem/rust-cache@v2 | |
- name: Setup | |
run: | | |
rustup target add wasm32-unknown-unknown | |
cargo install wasm-pack | |
- name: Test wasm | |
run: | | |
cd wasm | |
wasm-pack test --node |