Skip to content

Commit 4888d55

Browse files
committed
ci: also run doc tests
cargo nextest still can't run doctests.
1 parent 77ca0a2 commit 4888d55

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

.github/workflows/_build-rust.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,8 @@ jobs:
9494
run: |
9595
cargo doc --no-deps --document-private-items --features ${{ inputs.features }} --no-default-features
9696
cargo clippy --all-targets --features ${{ inputs.features }} --no-default-features
97-
- name: Unit Test (UNIX)
98-
if: inputs.do-test && runner.os != 'Windows'
99-
run: |
100-
curl -LsSf https://get.nexte.st/latest/linux | tar zxf -
101-
chmod u+x cargo-nextest
102-
./cargo-nextest nextest run --features ${{ inputs.features }} --no-default-features
103-
- name: Unit Test (Windows)
104-
if: inputs.do-test && runner.os == 'Windows'
105-
run: |
106-
Invoke-WebRequest https://get.nexte.st/latest/windows -OutFile cargo-nextest.zip
107-
Expand-Archive .\cargo-nextest.zip
108-
cp .\cargo-nextest/cargo-nextest.exe .
109-
.\cargo-nextest.exe nextest run --features ${{ inputs.features }} --no-default-features
97+
- name: Unit Test
98+
run: cargo test --verbose
11099
- name: Unit Test with Miri
111100
if: inputs.do-miri
112101
# "--tests" so that the doctests are skipped. Currently, the doctest

multiboot2/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- updated dependencies
66
- MSRV is 1.75
7+
- doc fixes
78

89
## 0.20.2 (2024-05-26)
910

multiboot2/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ impl<'a> BootInformation<'a> {
424424
/// special handling is required. This is reflected by code-comments.
425425
///
426426
/// ```no_run
427-
/// use std::str::Utf8Error;
428-
/// use multiboot2::{BootInformation, BootInformationHeader, Tag, TagTrait, TagType, TagTypeId};
427+
/// use multiboot2::{BootInformation, BootInformationHeader, StringError, Tag, TagTrait, TagType, TagTypeId};
429428
///
430429
/// #[repr(C)]
431430
/// #[derive(multiboot2::Pointee)] // Only needed for DSTs.
@@ -449,7 +448,7 @@ impl<'a> BootInformation<'a> {
449448
/// }
450449
///
451450
/// impl CustomTag {
452-
/// fn name(&self) -> Result<&str, Utf8Error> {
451+
/// fn name(&self) -> Result<&str, StringError> {
453452
/// Tag::parse_slice_as_string(&self.name)
454453
/// }
455454
/// }

0 commit comments

Comments
 (0)