Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Ensure that we run the doctests #49

Merged
merged 1 commit into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
- nextest-rs/nextest#16
  • Loading branch information
elasticdog committed Apr 30, 2023
commit dd17db95d0f79941675bb22770c51d100ec5d9ef
4 changes: 4 additions & 0 deletions .github/cue/rust.cue
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ rust: _#borsWorkflow & {
name: "Run tests"
run: "cargo nextest run --locked"
},
{
name: "Run doctests"
run: "cargo test --locked --doc"
},
]
}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down