Skip to content

Commit 78514ce

Browse files
committed
chore(ci): test libp2p-kad with all k-n features
1 parent 6803d79 commit 78514ce

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/ci.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,25 @@ jobs:
4747
save-if: false
4848

4949
- name: Run all tests
50-
run: cargo test --package "$CRATE" --all-features
50+
run:
51+
if [ "$CRATE" = "libp2p-kad" ]; then
52+
echo "Running tests for libp2p-kad with k-20 (default)"
53+
cargo test --package libp2p-kad --all-features
54+
55+
echo "Running tests for libp2p-kad with k-4"
56+
cargo test --package libp2p-kad --features serde,k-4
57+
58+
echo "Running tests for libp2p-kad with k-8"
59+
cargo test --package libp2p-kad --features serde,k-8
60+
61+
echo "Running tests for libp2p-kad with k-12"
62+
cargo test --package libp2p-kad --features serde,k-12
63+
64+
echo "Running tests for libp2p-kad with k-16"
65+
cargo test --package libp2p-kad --features serde,k-16
66+
else
67+
cargo test --package "$CRATE" --all-features
68+
fi
5169

5270
- name: Check if we compile without any features activated
5371
run: cargo build --package "$CRATE" --no-default-features

0 commit comments

Comments
 (0)