rodio_tap 0.2.0

Tap rodio audio sources and analyze them in real-time.
Documentation
name: CI

on:
  pull_request:
  push:
    branches: [master]

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install Linux build dependencies
        if: runner.os == 'Linux'
        run: sudo apt-get update && sudo apt-get install --yes --no-install-recommends libasound2-dev pkg-config

      - name: Run unit and integration tests
        run: cargo test --all-targets

      - name: Run tests with all features
        run: cargo test --all-targets --all-features

  quality:
    name: Quality Checks (Linux)
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install Linux build dependencies
        run: sudo apt-get update && sudo apt-get install --yes --no-install-recommends libasound2-dev pkg-config

      - name: Check formatting
        run: cargo fmt --all -- --check

      - name: Lint with clippy (all features)
        run: cargo clippy --all-targets --all-features -- -D warnings

      - name: Run doctests
        run: cargo test --doc

      - name: Check examples (default features)
        run: cargo check --examples

      - name: Check examples (all features)
        run: cargo check --examples --all-features