mpd_client 0.5.1

Asynchronous user-friendly MPD client
Documentation
name: Rust

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:
  all:
    runs-on: ubuntu-latest
    needs:
      - test
      - doc
    steps:
      - run: exit 0

  test:
    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@v2
    - name: Install Rust
      run: rustup update stable
    - name: Run tests
      run: cargo test --verbose
    
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest]

  doc:
    runs-on: ubuntu-latest
    
    steps:
      - uses: actions/checkout@v2
      - name: Install Rust
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          override: true
      - name: Build docs
        run: cargo doc --verbose --no-deps