Merge pull request #18 from rust-amplify/develop #35
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build & test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --all-features --no-fail-fast | |
wasm-testing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- uses: jetli/[email protected] | |
- name: Add wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Test apfloat | |
run: cd apfloat && wasm-pack test --headless --chrome --all-features | |
- name: Test num | |
run: cd num && wasm-pack test --headless --chrome --all-features |