From 1af23f1f2d51ce2bb80f9d54c7ccb68ee0c672a0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 24 Sep 2023 10:53:44 -0700 Subject: [PATCH] Test docs.rs documentation build in CI --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e924dfa4c..dd49909b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,6 +118,20 @@ jobs: - run: cargo generate-lockfile -Z minimal-versions - run: cargo check --locked --workspace + doc: + name: Documentation + runs-on: ubuntu-latest + timeout-minutes: 45 + env: + RUSTDOCFLAGS: -Dwarnings + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/install@cargo-docs-rs + - run: cargo docs-rs -p serde + - run: cargo docs-rs -p serde_derive + - run: cargo docs-rs -p serde_derive_internals + clippy: name: Clippy runs-on: ubuntu-latest