Skip to content

Commit

Permalink
ci: add a doc checking job
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Dec 1, 2023
1 parent 77ef060 commit 6e483d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ jobs:
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

docs:
name: Check for documentation errors
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@nightly

- name: cargo doc (rustls; all features)
run: cargo doc --locked --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: -Dwarnings

format:
name: Format
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6e483d6

Please sign in to comment.