From 7d0ce5de2df94a61ef93b1ca322a327dbff99040 Mon Sep 17 00:00:00 2001 From: Marcel Hellwig Date: Thu, 2 Jun 2022 13:57:22 +0200 Subject: [PATCH] CI: add `cargo doc` --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10b9bb9d9..3fae4a116 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,13 @@ jobs: components: clippy - run: RUSTFLAGS="--deny warnings" cargo clippy ${{ matrix.features }} + doc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features + msrv: runs-on: ubuntu-latest env: @@ -60,7 +67,7 @@ jobs: name: All checks succeeded if: success() runs-on: ubuntu-latest - needs: [check, msrv, test, check-format] + needs: [check, msrv, test, check-format, doc] steps: - name: Mark the job as successful run: exit 0