From 22aa63d98244d5df445cf2f2a0ae48e4a3a39626 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Mon, 4 Sep 2023 12:47:38 -0700 Subject: [PATCH] Make `cargo doc` fail on warnings in CI (#520) The warnings weren't causing the CI step to fail as desired. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19c770cc2..308a7e4cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libclang-dev libgtk-3-dev - name: Validate documentation - run: cargo doc --workspace --no-deps --all-features --document-private-items + run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --all-features --document-private-items typos: runs-on: ubuntu-latest