name: Test
on: [push, pull_request]
jobs:
native:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test - no features
uses: actions-rs/cargo@v1
with:
command: test
args: --all --no-default-features
- name: Run cargo test - all features
if: runner.os != 'Windows'
uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-features