Merge pull request #45 from rust-amplify/fuckit #68
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 in headless Chrome | |
run: wasm-pack test --headless --chrome | |
wasm-dependency: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- uses: jetli/[email protected] | |
- name: Add wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Test building dependency | |
run: cd test/wasm && wasm-pack build |