mirror of
https://github.com/redis/go-redis.git
synced 2025-07-19 11:43:14 +03:00
chore(ci): Add 8.2 pre build for CI
This commit is contained in:
1
.github/actions/run-tests/action.yml
vendored
1
.github/actions/run-tests/action.yml
vendored
@ -25,6 +25,7 @@ runs:
|
|||||||
|
|
||||||
# Mapping of redis version to redis testing containers
|
# Mapping of redis version to redis testing containers
|
||||||
declare -A redis_version_mapping=(
|
declare -A redis_version_mapping=(
|
||||||
|
["8.2.x"]="8.2-M01-pre"
|
||||||
["8.0.x"]="8.0.2"
|
["8.0.x"]="8.0.2"
|
||||||
["7.4.x"]="rs-7.4.0-v5"
|
["7.4.x"]="rs-7.4.0-v5"
|
||||||
["7.2.x"]="rs-7.2.0-v17"
|
["7.2.x"]="rs-7.2.0-v17"
|
||||||
|
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -18,6 +18,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
redis-version:
|
redis-version:
|
||||||
|
- "8.2.x" # Redis CE 8.2
|
||||||
- "8.0.x" # Redis CE 8.0
|
- "8.0.x" # Redis CE 8.0
|
||||||
- "7.4.x" # Redis stack 7.4
|
- "7.4.x" # Redis stack 7.4
|
||||||
go-version:
|
go-version:
|
||||||
@ -43,6 +44,7 @@ jobs:
|
|||||||
|
|
||||||
# Mapping of redis version to redis testing containers
|
# Mapping of redis version to redis testing containers
|
||||||
declare -A redis_version_mapping=(
|
declare -A redis_version_mapping=(
|
||||||
|
["8.2.x"]="8.2-M01-pre"
|
||||||
["8.0.x"]="8.0.2"
|
["8.0.x"]="8.0.2"
|
||||||
["7.4.x"]="rs-7.4.0-v5"
|
["7.4.x"]="rs-7.4.0-v5"
|
||||||
)
|
)
|
||||||
@ -72,6 +74,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
redis-version:
|
redis-version:
|
||||||
|
- "8.2.x" # Redis CE 8.2
|
||||||
- "8.0.x" # Redis CE 8.0
|
- "8.0.x" # Redis CE 8.0
|
||||||
- "7.4.x" # Redis stack 7.4
|
- "7.4.x" # Redis stack 7.4
|
||||||
- "7.2.x" # Redis stack 7.2
|
- "7.2.x" # Redis stack 7.2
|
||||||
|
@ -1470,6 +1470,7 @@ var _ = Describe("Commands", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should BitOpDiff", Label("NonRedisEnterprise"), 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)
|
set := client.Set(ctx, "key1", "\xff", 0)
|
||||||
Expect(set.Err()).NotTo(HaveOccurred())
|
Expect(set.Err()).NotTo(HaveOccurred())
|
||||||
Expect(set.Val()).To(Equal("OK"))
|
Expect(set.Val()).To(Equal("OK"))
|
||||||
@ -1488,6 +1489,7 @@ var _ = Describe("Commands", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should BitOpDiff1", Label("NonRedisEnterprise"), 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)
|
set := client.Set(ctx, "key1", "\xff", 0)
|
||||||
Expect(set.Err()).NotTo(HaveOccurred())
|
Expect(set.Err()).NotTo(HaveOccurred())
|
||||||
Expect(set.Val()).To(Equal("OK"))
|
Expect(set.Val()).To(Equal("OK"))
|
||||||
@ -1506,6 +1508,7 @@ var _ = Describe("Commands", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should BitOpAndOr", Label("NonRedisEnterprise"), 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)
|
set := client.Set(ctx, "key1", "\xff", 0)
|
||||||
Expect(set.Err()).NotTo(HaveOccurred())
|
Expect(set.Err()).NotTo(HaveOccurred())
|
||||||
Expect(set.Val()).To(Equal("OK"))
|
Expect(set.Val()).To(Equal("OK"))
|
||||||
@ -1524,6 +1527,7 @@ var _ = Describe("Commands", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should BitOpOne", Label("NonRedisEnterprise"), 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)
|
set := client.Set(ctx, "key1", "\xff", 0)
|
||||||
Expect(set.Err()).NotTo(HaveOccurred())
|
Expect(set.Err()).NotTo(HaveOccurred())
|
||||||
Expect(set.Val()).To(Equal("OK"))
|
Expect(set.Val()).To(Equal("OK"))
|
||||||
|
Reference in New Issue
Block a user