From 849b1817d249c89442e4826e9be515c672249292 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Fri, 20 Jan 2023 17:52:08 +0100 Subject: [PATCH] ci: environment variable RUSTDOCFLAGS --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1043e16ce50a50..b3fa1ba7733e4a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -105,6 +105,10 @@ jobs: ./scripts/add_plugin.py test --url https://pypi.org/project/-test/0.1.0/ --prefix TST ./scripts/add_rule.py --name FirstRule --code TST001 --linter test - run: cargo check + - run: cargo doc --all --no-deps + env: + # Setting RUSTDOCFLAGS because `cargo doc --check` isn't yet implemented (https://github.com/rust-lang/cargo/issues/10025). + RUSTDOCFLAGS: "-D warnings" # TODO(charlie): Re-enable the `wasm-pack` tests. # See: https://github.com/charliermarsh/ruff/issues/1425