Merge pull request #25 from MoSal/primary #103
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] | |
jobs: | |
all: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: [stable, beta] | |
steps: | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- uses: actions/checkout@master | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Add Wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Run tests on Wasm | |
run: cargo build --verbose --target wasm32-unknown-unknown |