Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 6f22d10

Browse files
committed
Add redis-tools to github action for test runs
1 parent b24feaa commit 6f22d10

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: Install Redis for tests
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y redis
23+
1924
- name: Install Rust toolchain
2025
uses: dtolnay/rust-toolchain@master
2126
with:

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ thiserror = "2.0.11"
2424
serde_json = "1.0.138"
2525
hostname = "0.4.0"
2626
redis = "0.24.0"
27-
redis-test = "0.9.0"
27+
redis-test = { version = "0.9.0", optional = true }
2828

2929

3030
[features]
31-
integration = []
31+
integration = ["redis-test"]

src/rate_limit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ mod tests {
433433
}
434434

435435
#[tokio::test]
436+
#[cfg(all(feature = "integration", test))]
436437
async fn test_redis_rate_limits_with_mock() {
437438
use redis_test::server::RedisServer;
438439

0 commit comments

Comments
 (0)