Test docs.rs documentation build in CI

This commit is contained in:
David Tolnay 2023-09-24 10:53:43 -07:00
parent 435c7c819c
commit 5bfbdaebe3
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -52,6 +52,22 @@ jobs:
- run: cargo generate-lockfile -Z minimal-versions
- run: cargo check --locked
doc:
name: Documentation
needs: pre_ci
if: needs.pre_ci.outputs.continue
runs-on: ubuntu-latest
timeout-minutes: 45
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs
clippy:
name: Clippy
runs-on: ubuntu-latest