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

Commit e57c540

Browse files
committed
Add redis-tools to github action for test runs
1 parent a10c0a6 commit e57c540

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
@@ -26,11 +26,11 @@ thiserror = "2.0.11"
2626
serde_json = "1.0.138"
2727
hostname = "0.4.0"
2828
redis = "0.24.0"
29-
redis-test = "0.9.0"
29+
redis-test = { version = "0.9.0", optional = true }
3030

3131

3232
[dependencies.ring]
3333
version = "0.17.12"
3434

3535
[features]
36-
integration = []
36+
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)