From dd17db95d0f79941675bb22770c51d100ec5d9ef Mon Sep 17 00:00:00 2001 From: Aaron Bull Schaefer Date: Fri, 28 Apr 2023 17:20:13 -0700 Subject: [PATCH] Ensure that we run the doctests Due to a limitation in how doctests are exposed in stable Rust, nextest does not actually run them by default. We unfortunately need an explicit step for the time being. See: - https://github.com/nextest-rs/nextest/issues/16 --- .github/cue/rust.cue | 4 ++++ .github/workflows/rust.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/cue/rust.cue b/.github/cue/rust.cue index 14dd172..7c2625b 100644 --- a/.github/cue/rust.cue +++ b/.github/cue/rust.cue @@ -94,6 +94,10 @@ rust: _#borsWorkflow & { name: "Run tests" run: "cargo nextest run --locked" }, + { + name: "Run doctests" + run: "cargo test --locked --doc" + }, ] } diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 07c5510..2ef4186 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -146,6 +146,8 @@ jobs: run: cargo test --locked --no-run - name: Run tests run: cargo nextest run --locked + - name: Run doctests + run: cargo test --locked --doc checkMsrv: name: check / msrv needs: