Skip to content

Commit 990007c

Browse files
committed
add cargo doc to workflow
1 parent 4249b56 commit 990007c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
rust: stable-x86_64-gnu
3333
steps:
3434
- uses: actions/checkout@master
35-
- name: Install Rust (rustup)
35+
- name: Install Rust
3636
run: |
3737
rustup update ${{ matrix.rust }} --no-self-update
3838
rustup default ${{ matrix.rust }}
@@ -60,6 +60,19 @@ jobs:
6060
rustup component add rustfmt
6161
- run: cargo fmt -- --check
6262

63+
doc:
64+
name: Check Documentation
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@master
68+
- name: Install Rust
69+
run: |
70+
rustup update stable --no-self-update
71+
rustup default stable
72+
rustup component add rust-docs
73+
- name: Run rustdoc
74+
run: RUSTDOCFLAGS="-D warnings" cargo doc --verbose --all-features
75+
6376
features:
6477
name: Feature check
6578
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)