From c6b7b3fb458317235ca8f1bf20b2eea5bae0faa9 Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Tue, 17 Jun 2025 11:36:24 +0300 Subject: [PATCH] chore(ci): Add 8.2 pre build for CI --- .github/actions/run-tests/action.yml | 1 + .github/workflows/build.yml | 3 +++ commands_test.go | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index e9bb7e79..bba99197 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -25,6 +25,7 @@ runs: # Mapping of redis version to redis testing containers declare -A redis_version_mapping=( + ["8.2.x"]="8.2-M01-pre" ["8.0.x"]="8.0.2" ["7.4.x"]="rs-7.4.0-v5" ["7.2.x"]="rs-7.2.0-v17" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8b3d1b6..dd097a9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,7 @@ jobs: fail-fast: false matrix: redis-version: + - "8.2.x" # Redis CE 8.2 - "8.0.x" # Redis CE 8.0 - "7.4.x" # Redis stack 7.4 go-version: @@ -43,6 +44,7 @@ jobs: # Mapping of redis version to redis testing containers declare -A redis_version_mapping=( + ["8.2.x"]="8.2-M01-pre" ["8.0.x"]="8.0.2" ["7.4.x"]="rs-7.4.0-v5" ) @@ -72,6 +74,7 @@ jobs: fail-fast: false matrix: redis-version: + - "8.2.x" # Redis CE 8.2 - "8.0.x" # Redis CE 8.0 - "7.4.x" # Redis stack 7.4 - "7.2.x" # Redis stack 7.2 diff --git a/commands_test.go b/commands_test.go index a37fee63..32c3829d 100644 --- a/commands_test.go +++ b/commands_test.go @@ -1470,6 +1470,7 @@ var _ = Describe("Commands", func() { }) It("should BitOpDiff", Label("NonRedisEnterprise"), func() { + SkipBeforeRedisVersion(8.2, "BITOP DIFF is available since Redis 8.2") set := client.Set(ctx, "key1", "\xff", 0) Expect(set.Err()).NotTo(HaveOccurred()) Expect(set.Val()).To(Equal("OK")) @@ -1488,6 +1489,7 @@ var _ = Describe("Commands", func() { }) It("should BitOpDiff1", Label("NonRedisEnterprise"), func() { + SkipBeforeRedisVersion(8.2, "BITOP DIFF is available since Redis 8.2") set := client.Set(ctx, "key1", "\xff", 0) Expect(set.Err()).NotTo(HaveOccurred()) Expect(set.Val()).To(Equal("OK")) @@ -1506,6 +1508,7 @@ var _ = Describe("Commands", func() { }) It("should BitOpAndOr", Label("NonRedisEnterprise"), func() { + SkipBeforeRedisVersion(8.2, "BITOP ANDOR is available since Redis 8.2") set := client.Set(ctx, "key1", "\xff", 0) Expect(set.Err()).NotTo(HaveOccurred()) Expect(set.Val()).To(Equal("OK")) @@ -1524,6 +1527,7 @@ var _ = Describe("Commands", func() { }) It("should BitOpOne", Label("NonRedisEnterprise"), func() { + SkipBeforeRedisVersion(8.2, "BITOP ONE is available since Redis 8.2") set := client.Set(ctx, "key1", "\xff", 0) Expect(set.Err()).NotTo(HaveOccurred()) Expect(set.Val()).To(Equal("OK"))