From d6643086f3917d99b8a4d6a422c8ce85746a2eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Fri, 30 Jul 2021 19:29:22 +0100 Subject: [PATCH] Check documentation errors in CI --- .github/workflows/pipeline.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index f13460c7a..bba081e5f 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -48,3 +48,20 @@ jobs: with: command: clippy args: --all-features --workspace -- -D warnings + documentation: + name: Documentation + runs-on: ubuntu-latest + env: + RUSTDOCFLAGS: -Dwarnings + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: rustup component add clippy + - uses: actions-rs/cargo@v1 + with: + command: doc + args: -p naga --all-features --document-private-items