Skip to content

Commit

Permalink
ci: add doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Feb 16, 2025
1 parent ebed50f commit 8c17379
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.target }}-
# ----- Non-Cross path
# ----- Non-Cross path -----
- name: cargo build
run: cargo build --target=${{ matrix.target }}
if: ${{ !matrix.cross }}
Expand All @@ -100,11 +100,15 @@ jobs:
NEXTEST_PROFILE: ci # defined in .config/nextest.toml
if: ${{ !matrix.cross }}

# ----- Cross path
- name: cargo test
run: cargo test --doc
if: ${{ !matrix.cross }}

# ----- Cross path -----
#- name: Install qemu
# run: apt-get install --assume-yes binfmt-support qemu-user-static qemu-user
# if: ${{ matrix.cross }}

#
- name: cargo build
run: cross build --target=${{ matrix.target }}
if: ${{ matrix.cross }}
Expand Down
3 changes: 2 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ bump:
# Run the test suite with nextest
nextest:
just ensure-command cargo-nextest
cargo nextest run --workspace
cargo nextest run --all-features --workspace
cargo test --doc

# If you change anything in here, make sure to also adjust the lint CI job!
lint:
Expand Down

0 comments on commit 8c17379

Please sign in to comment.