Skip to content

Commit

Permalink
Add doc tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aevyrie committed Feb 24, 2024
1 parent 7cc9cbd commit 893336b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,14 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2.7.0
- run: cargo test --workspace --all-features --all-targets

# Note: cargo test --all-targets disables doc tests, so we have to add this to test docs
doctest:
runs-on: ubuntu-latest
needs: [setup]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2.7.0
- run: cargo test --workspace --all-features --doc

0 comments on commit 893336b

Please sign in to comment.