Skip to content

Commit 7404c92

Browse files
committed
add isValkey
remove space Signed-off-by: zunda <[email protected]>
1 parent a50d96b commit 7404c92

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@v4
3535
- name: Test
36+
env:
37+
IS_VALKEY: ${{ matrix.database == 'valkey/valkey:latest' && 'true' || 'false' }}
3638
run: |
3739
swift test --enable-code-coverage
3840
- name: Convert coverage files

Tests/IntegrationTests/CommandIntegrationTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Valkey
1616
@Suite("Command Integration Tests")
1717
struct CommandIntegratedTests {
1818
let valkeyHostname = ProcessInfo.processInfo.environment["VALKEY_HOSTNAME"] ?? "localhost"
19+
static let isValkey = ProcessInfo.processInfo.environment["IS_VALKEY"] == "true"
1920

2021
@available(valkeySwift 1.0, *)
2122
func withKey<Value>(connection: some ValkeyClientProtocol, _ operation: (ValkeyKey) async throws -> Value) async throws -> Value {
@@ -193,7 +194,7 @@ struct CommandIntegratedTests {
193194
}
194195

195196
@available(valkeySwift 1.0, *)
196-
@Test(.disabled("failed in redis"))
197+
@Test(.enabled(if: Self.isValkey))
197198
func testSCRIPTfunctions() async throws {
198199
var logger = Logger(label: "Valkey")
199200
logger.logLevel = .trace

0 commit comments

Comments
 (0)