Skip to content

Commit

Permalink
add rustdoc lints to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenwong97 committed Aug 26, 2023
1 parent 9af4bc2 commit 868cbb3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ jobs:
- name: Linting
run: cargo clippy -- -D warnings

lint:
name: Rustdoc-lints
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-D missing_docs -D rustdoc::missing_doc_code_examples"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: doc
- uses: Swatinem/rust-cache@v2
- name: Rustdoc-linting
run: cargo doc --workspace --all-features --no-deps --document-private-items

coverage:
name: Code coverage
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![warn(missing_docs)]
#![warn(clippy::missing_docs_in_private_items)]

//! Telegram bot for a running contest between friends.
//!
Expand Down

0 comments on commit 868cbb3

Please sign in to comment.