From 0de13cf5a913ed818a40a7961e35e82c8a39b6bd Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 21 Jul 2025 10:18:53 -0700 Subject: [PATCH] Update CI to test the whole workspace This updates the CI jobs to ensure that all crates in the workspace are tested. This will be needed when more crates are added. --- .github/workflows/main.yml | 4 ++-- examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73f940b4..6ce056cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,9 +48,9 @@ jobs: - name: Install Rust run: bash ci/install-rust.sh ${{ matrix.rust }} ${{ matrix.target }} - name: Build and run tests - run: cargo test --locked --target ${{ matrix.target }} + run: cargo test --workspace --locked --target ${{ matrix.target }} - name: Test no default - run: cargo test --no-default-features --target ${{ matrix.target }} + run: cargo test --workspace --no-default-features --target ${{ matrix.target }} aarch64-cross-builds: runs-on: ubuntu-22.04 diff --git a/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml b/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml index 38f7e907..0ef48dd5 100644 --- a/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml +++ b/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml @@ -8,3 +8,8 @@ mdbook = { version = "0.4.40", path = "../../.." } pulldown-cmark = { version = "0.12.2", default-features = false } pulldown-cmark-to-cmark = "18.0.0" serde_json = "1.0.132" + +[[bin]] +name = "mdbook-remove-emphasis" +# This is tested through a separate test from the main package. +test = false