Skip to content

Commit

Permalink
Add doctests to Github CI (#410)
Browse files Browse the repository at this point in the history
# Objective

- Test documentation examples with the Github CI too.

# Solution

- Add a separate step for doctests in `valence-tests`.

[`--doc` seems to be mutually exclusive with all other
targets](https://doc.rust-lang.org/cargo/commands/cargo-test.html#option-cargo-test---doc)

rust-lang/cargo#6669 relevant.
  • Loading branch information
PonasKovas authored Jul 11, 2023
1 parent e03adf1 commit a5101ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ jobs:
- name: Run tests
run: cargo test --workspace ${{ matrix.flags }}--all-features --all-targets

- name: Run doctests
run: cargo test --workspace ${{ matrix.flags }}--all-features --doc

- name: Run valence_nbt tests without preserve_order feature
run: cargo test -p valence_nbt --all-targets

Expand Down

0 comments on commit a5101ce

Please sign in to comment.