Skip to content

Commit 0b5df8b

Browse files
committed
add a workflow to check cargo doc and deny on docs issues
at least, if i've plumbed the env var correctly. i am not an expert yaml programmer.
1 parent 0f3b1a3 commit 0b5df8b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ jobs:
2525
- name: Check style
2626
run: cargo fmt -- --check
2727

28+
check-docs:
29+
runs-on: ubuntu-24.04
30+
steps:
31+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
32+
- name: Report cargo version
33+
run: cargo --version
34+
- name: Check docs
35+
run: cargo doc --no-deps
36+
env:
37+
RUSTDOCFLAGS: -D warnings
38+
2839
clippy-lint:
2940
runs-on: ubuntu-24.04
3041
steps:

0 commit comments

Comments
 (0)