name: Rust

on:
  push:
    branches: [master]
    paths:
      - '**.rs'
      - '**.toml'
      - '.github/workflows/rust.yml'
  pull_request:
    paths:
      - '**.rs'
      - '**.toml'
      - '.github/workflows/rust.yml'

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest]

    steps:
    - uses: actions/checkout@v2
    - uses: actions-rs/toolchain@v1
      with:
        default: true
        profile: minimal
        toolchain: stable
        override: true
    - name: Build
      run: cargo build --workspace --all-targets
    - name: Run tests
      run: cargo test --workspace --all-targets
    - name: Run doctests
      run: cargo test --workspace --doc

    env:
      RUST_BACKTRACE: 1

  features:

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions-rs/toolchain@v1
      with:
        default: true
        profile: minimal
        toolchain: stable
        override: true
    - name: Run tests no-default-features
      run: cargo test --workspace --all --doc --no-default-features
    - name: Run tests only fuzzy
      run: cargo test --workspace --all --doc --no-default-features --features with-fuzzy
    - name: Run tests all features
      run: cargo test --workspace --all --doc --features with-fuzzy,with-dirs

    env:
      RUST_BACKTRACE: 1

name: Rust

on:
  push:
    branches: [master]
    paths:
      - '**.rs'
      - '**.toml'
      - '.github/workflows/rust.yml'
  pull_request:
    paths:
      - '**.rs'
      - '**.toml'
      - '.github/workflows/rust.yml'

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest]

    steps:
    - uses: actions/checkout@v2
    - uses: actions-rs/toolchain@v1
      with:
        default: true
        profile: minimal
        toolchain: stable
        override: true
    - name: Build
      run: cargo build --workspace --all-targets
    - name: Run tests
      run: cargo test --workspace --all-targets
    - name: Run doctests
      run: cargo test --workspace --doc

    env:
      RUST_BACKTRACE: 1

Revert changes to github actions file
Revert changes to github actions file
