[Docs] Add rustdoc checks to CI and tests to pre-commit (#83)

This commit is contained in:
Tom 2023-08-02 14:44:42 +00:00 committed by GitHub
parent a4df444c86
commit fb447edbc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -100,3 +100,17 @@ jobs:
- name: Run clippy (local)
run: cargo clippy --verbose --bins --lib --examples --all-features
if: ${{ env.ACT }} # only run during local actions testing
doc:
name: "Check rustdoc"
runs-on: ubuntu-latest
needs: [ "build_first" ]
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: "cargo-deps"
cache-targets: false
- name: "Run cargo doc"
run: cargo doc
env:
RUSTDOCFLAGS: "-D warnings"