Skip to content

Commit

Permalink
Adjust ci.yml to run doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greyblake committed Aug 25, 2024
1 parent 97c5159 commit 4a37a13
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- name: Run doctests for nutype_macros
run: |
cd nutype_macros
cargo test --doc
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down Expand Up @@ -134,4 +156,3 @@ jobs:

- name: typos-action
uses: crate-ci/[email protected]

0 comments on commit 4a37a13

Please sign in to comment.