Skip to content

Commit c56420d

Browse files
committed
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 <[email protected]>
1 parent db5857b commit c56420d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,27 @@ jobs:
6363
- run: wasm-pack test --node
6464
- run: wasm-pack test --node --no-default-features
6565
- run: wasm-pack test --node --no-default-features --features portable-atomic
66+
- name: Clone some dependent crates
67+
run: |
68+
git clone https://github.com/smol-rs/event-listener-strategy.git
69+
git clone https://github.com/smol-rs/async-channel.git
70+
git clone https://github.com/smol-rs/async-lock.git
71+
- name: Patch dependent crates
72+
run: |
73+
echo '[patch.crates-io]' >> event-listener-strategy/Cargo.toml
74+
echo 'event-listener = { path = ".." }' >> event-listener-strategy/Cargo.toml
75+
echo '[patch.crates-io]' >> async-channel/Cargo.toml
76+
echo 'event-listener = { path = ".." }' >> async-channel/Cargo.toml
77+
echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-channel/Cargo.toml
78+
echo '[patch.crates-io]' >> event-listener-strategy/Cargo.toml
79+
echo 'event-listener = { path = ".." }' >> async-lock/Cargo.toml
80+
echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-lock/Cargo.toml
81+
echo 'async-channel = { path = "../async-channel" }' >> async-lock/Cargo.toml
82+
- name: Test dependent crates
83+
run: |
84+
cargo test --manifest-path=event-listener-strategy/Cargo.toml
85+
cargo test --manifest-path=async-channel/Cargo.toml
86+
cargo test --manifest-path=async-lock/Cargo.toml
6687
6788
msrv:
6889
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)