From 0e68b1e507132d9e2da84ea27a6cacaa04cb77b0 Mon Sep 17 00:00:00 2001 From: Tpt Date: Wed, 1 Mar 2023 12:34:37 +0100 Subject: [PATCH] Runs rustdoc as part of the CI Allows to find some bugs in the documentation --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b13163ba..c62c9314 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -173,6 +173,30 @@ jobs: env: RUST_BACKTRACE: 1 + rustdoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - run: rustup update + - uses: Swatinem/rust-cache@v2 + - run: cargo doc --all-features + working-directory: ./lib + + rustdoc_msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - run: rustup update && rustup override set 1.60.0 + - uses: Swatinem/rust-cache@v2 + - run: cargo doc --all-features + working-directory: ./lib + env: + RUSTDOCFLAGS: -D warnings + js: runs-on: ubuntu-latest steps: