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

Commit

Permalink
Ensure that we run the doctests
Browse files Browse the repository at this point in the history
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
1 parent f48d91f commit dd17db9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit dd17db9

Please sign in to comment.