From 2761dff4128a55bd7ae65bef6ea1603f152cf4dc Mon Sep 17 00:00:00 2001 From: John Nunley Date: Mon, 8 Apr 2024 10:43:57 -0700 Subject: [PATCH] ci: Add CI tests for dependent crates This commit adds tests to CI that tests new patches for event-listener with dependent crates. Examples of these dependent crates are: - event-listener-strategy - async-channel - async-lock Signed-off-by: John Nunley --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0113c2..082b469 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,27 @@ jobs: - run: wasm-pack test --node - run: wasm-pack test --node --no-default-features - run: wasm-pack test --node --no-default-features --features portable-atomic + - name: Clone some dependent crates + run: | + git clone https://github.com/smol-rs/event-listener-strategy.git + git clone https://github.com/smol-rs/async-channel.git + git clone https://github.com/smol-rs/async-lock.git + - name: Patch dependent crates + run: | + echo '[patch.crates-io]' >> event-listener-strategy/Cargo.toml + echo 'event-listener = { path = ".." }' >> event-listener-strategy/Cargo.toml + echo '[patch.crates-io]' >> async-channel/Cargo.toml + echo 'event-listener = { path = ".." }' >> async-channel/Cargo.toml + echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-channel/Cargo.toml + echo '[patch.crates-io]' >> event-listener-strategy/Cargo.toml + echo 'event-listener = { path = ".." }' >> async-lock/Cargo.toml + echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-lock/Cargo.toml + echo 'async-channel = { path = "../async-channel" }' >> async-lock/Cargo.toml + - name: Test dependent crates + run: | + cargo test --manifest-path=event-listener-strategy/Cargo.toml + cargo test --manifest-path=async-channel/Cargo.toml + cargo test --manifest-path=async-lock/Cargo.toml msrv: runs-on: ubuntu-latest