diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b3cef797e..5bb781018 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,11 +8,11 @@ jobs: steps: - uses: actions/checkout@v3 - run: rustup update 1.70 --no-self-update && rustup default 1.70 - - run: cargo build + - run: cargo build --workspace - name: test mdBook # rustdoc doesn't build dependencies, so it needs to run after `cargo build`, # but its dependency search gets confused if there are multiple copies of any # dependency in target/debug/deps, so it needs to run before `cargo test` et al. # clutter target/debug/deps with multiple copies of things. run: for file in $(find mdbook -name '*.md' | sort); do rustdoc --test $file -L ./target/debug/deps; done - - run: cargo test + - run: cargo test --workspace