diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c7ac21bb3..e3df89b769 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -118,6 +118,19 @@ jobs: components: rustfmt - run: cargo +nightly fmt --all -- --check + check-cargo-doc: + name: Check `cargo doc` for warnings + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 + with: + toolchain: stable + - name: Check `cargo doc` + env: + RUSTDOCFLAGS: "--deny warnings" + run: cargo doc --workspace --no-deps + mkdocs: name: Check that MkDocs can build the docs runs-on: ubuntu-latest