mdbook-toc 0.15.4

mdbook preprocessor to add Table of Contents
Documentation
name: Tests

on:
  push:
    branches: [main]
  pull_request:

env:
  RUSTFLAGS: -Dwarnings

jobs:
  build_and_test:
    name: Build and test
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
    - uses: dtolnay/rust-toolchain@stable
    - uses: Swatinem/rust-cache@v2

    - name: tests
      run: cargo test --all

  check_fmt_and_docs:
    name: Checking fmt and docs
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: dtolnay/rust-toolchain@stable
    - uses: Swatinem/rust-cache@v2

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

    - name: Clippy
      run: cargo clippy --all

    - name: Docs
      run: cargo doc --no-deps