-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from greyblake/fix-doc-tests
Fix doc tests
- Loading branch information
Showing
2 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,28 @@ jobs: | |
command: test | ||
args: --all-features | ||
|
||
doctests: | ||
name: Doctests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Run doctests for nutype | ||
run: | | ||
cd nutype | ||
cargo test --doc --all-features | ||
- name: Run doctests for nutype_macros | ||
run: | | ||
cd nutype_macros | ||
cargo test --doc --all-features | ||
rustfmt: | ||
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
|
@@ -134,4 +156,3 @@ jobs: | |
|
||
- name: typos-action | ||
uses: crate-ci/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters