Skip to content

Commit c6b7b3f

Browse files
committed
chore(ci): Add 8.2 pre build for CI
1 parent 89cbc1a commit c6b7b3f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/actions/run-tests/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ runs:
2525
2626
# Mapping of redis version to redis testing containers
2727
declare -A redis_version_mapping=(
28+
["8.2.x"]="8.2-M01-pre"
2829
["8.0.x"]="8.0.2"
2930
["7.4.x"]="rs-7.4.0-v5"
3031
["7.2.x"]="rs-7.2.0-v17"

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
redis-version:
21+
- "8.2.x" # Redis CE 8.2
2122
- "8.0.x" # Redis CE 8.0
2223
- "7.4.x" # Redis stack 7.4
2324
go-version:
@@ -43,6 +44,7 @@ jobs:
4344
4445
# Mapping of redis version to redis testing containers
4546
declare -A redis_version_mapping=(
47+
["8.2.x"]="8.2-M01-pre"
4648
["8.0.x"]="8.0.2"
4749
["7.4.x"]="rs-7.4.0-v5"
4850
)
@@ -72,6 +74,7 @@ jobs:
7274
fail-fast: false
7375
matrix:
7476
redis-version:
77+
- "8.2.x" # Redis CE 8.2
7578
- "8.0.x" # Redis CE 8.0
7679
- "7.4.x" # Redis stack 7.4
7780
- "7.2.x" # Redis stack 7.2

commands_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,7 @@ var _ = Describe("Commands", func() {
14701470
})
14711471

14721472
It("should BitOpDiff", Label("NonRedisEnterprise"), func() {
1473+
SkipBeforeRedisVersion(8.2, "BITOP DIFF is available since Redis 8.2")
14731474
set := client.Set(ctx, "key1", "\xff", 0)
14741475
Expect(set.Err()).NotTo(HaveOccurred())
14751476
Expect(set.Val()).To(Equal("OK"))
@@ -1488,6 +1489,7 @@ var _ = Describe("Commands", func() {
14881489
})
14891490

14901491
It("should BitOpDiff1", Label("NonRedisEnterprise"), func() {
1492+
SkipBeforeRedisVersion(8.2, "BITOP DIFF is available since Redis 8.2")
14911493
set := client.Set(ctx, "key1", "\xff", 0)
14921494
Expect(set.Err()).NotTo(HaveOccurred())
14931495
Expect(set.Val()).To(Equal("OK"))
@@ -1506,6 +1508,7 @@ var _ = Describe("Commands", func() {
15061508
})
15071509

15081510
It("should BitOpAndOr", Label("NonRedisEnterprise"), func() {
1511+
SkipBeforeRedisVersion(8.2, "BITOP ANDOR is available since Redis 8.2")
15091512
set := client.Set(ctx, "key1", "\xff", 0)
15101513
Expect(set.Err()).NotTo(HaveOccurred())
15111514
Expect(set.Val()).To(Equal("OK"))
@@ -1524,6 +1527,7 @@ var _ = Describe("Commands", func() {
15241527
})
15251528

15261529
It("should BitOpOne", Label("NonRedisEnterprise"), func() {
1530+
SkipBeforeRedisVersion(8.2, "BITOP ONE is available since Redis 8.2")
15271531
set := client.Set(ctx, "key1", "\xff", 0)
15281532
Expect(set.Err()).NotTo(HaveOccurred())
15291533
Expect(set.Val()).To(Equal("OK"))

0 commit comments

Comments
 (0)