ci: run `cargo doc` in CI
This will prevent checking in broken docs.
@@ -84,6 +84,21 @@ jobs:
name: Clippy
command: cargo clippy --all-targets --workspace -- -D warnings
- cache_save
+ doc:
+ docker:
+ - image: quay.io/influxdb/rust:ci
+ environment:
+ # Disable full debug symbol generation to speed up CI build
+ # "1" means line tables only, which is useful for panic tracebacks.
+ RUSTFLAGS: "-C debuginfo=1"
+ steps:
+ - checkout
+ - rust_components
+ - cache_restore
+ - run:
+ name: Cargo doc
+ command: cargo doc --workspace
+ - cache_save
test:
docker:
- image: quay.io/influxdb/rust:ci
@@ -248,6 +263,7 @@ workflows:
- test_influxdb2_client
- build
- check-flatbuffers
+ - doc
# Internal pipeline for perf builds.
#
