name: Validate Pull Request
on: push

jobs:
  test:
    name: Run Tests
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: textbook/git-checkout-submodule-action@master
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: nightly
        override: true
    - uses: actions-rs/cargo@v1
      with:
        command: test
        toolchain: nightly
        args: --release --all-features

name: Validate Pull Request
on: push

jobs:
  test:
    name: Run Tests
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        features: [--all-features, --no-default-features]
        os: [ubuntu-latest, windows-latest, macOS-latest]

    steps:
    - uses: actions/checkout@master
    - uses: textbook/git-checkout-submodule-action@master
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: nightly
        override: true
    - uses: actions-rs/cargo@v1
      with:
        command: test
        toolchain: nightly
        args: --release ${{ matrix.features }}

Build matrix for OS and features
Build matrix for OS and features