mirror of
https://github.com/redis/go-redis.git
synced 2025-04-16 09:23:06 +03:00
chore: use redis 8 ce m05 (#3304)
* use m05 * add platform, since client-libs has image for amd64 * verbose testing * Update .github/workflows/build.yml
This commit is contained in:
parent
b3709c6506
commit
9494d8498a
2
.github/actions/run-tests/action.yml
vendored
2
.github/actions/run-tests/action.yml
vendored
@ -25,7 +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.0-M03"]="8.0-M04-pre"
|
["8.0-M05"]="8.0-M05-pre"
|
||||||
["7.4.2"]="rs-7.4.0-v2"
|
["7.4.2"]="rs-7.4.0-v2"
|
||||||
["7.2.7"]="rs-7.2.0-v14"
|
["7.2.7"]="rs-7.2.0-v14"
|
||||||
)
|
)
|
||||||
|
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
redis-version:
|
redis-version:
|
||||||
- "8.0-M03" # 8.0 milestone 4
|
- "8.0-M05" # 8.0 milestone 5
|
||||||
- "7.4.2" # should use redis stack 7.4
|
- "7.4.2" # should use redis stack 7.4
|
||||||
go-version:
|
go-version:
|
||||||
- "1.23.x"
|
- "1.23.x"
|
||||||
@ -43,7 +43,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.0-M03"]="8.0-M04-pre"
|
["8.0-M05"]="8.0-M05-pre"
|
||||||
["7.4.2"]="rs-7.4.0-v2"
|
["7.4.2"]="rs-7.4.0-v2"
|
||||||
)
|
)
|
||||||
if [[ -v redis_version_mapping[$REDIS_VERSION] ]]; then
|
if [[ -v redis_version_mapping[$REDIS_VERSION] ]]; then
|
||||||
@ -72,7 +72,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
redis-version:
|
redis-version:
|
||||||
- "8.0-M03" # 8.0 milestone 4
|
- "8.0-M05" # 8.0 milestone 5
|
||||||
- "7.4.2" # should use redis stack 7.4
|
- "7.4.2" # should use redis stack 7.4
|
||||||
- "7.2.7" # should redis stack 7.2
|
- "7.2.7" # should redis stack 7.2
|
||||||
go-version:
|
go-version:
|
||||||
|
2
Makefile
2
Makefile
@ -17,7 +17,7 @@ test.ci:
|
|||||||
(cd "$${dir}" && \
|
(cd "$${dir}" && \
|
||||||
go mod tidy -compat=1.18 && \
|
go mod tidy -compat=1.18 && \
|
||||||
go vet && \
|
go vet && \
|
||||||
go test -coverprofile=coverage.txt -covermode=atomic ./... -race); \
|
go test -v -coverprofile=coverage.txt -covermode=atomic ./... -race); \
|
||||||
done
|
done
|
||||||
cd internal/customvet && go build .
|
cd internal/customvet && go build .
|
||||||
go vet -vettool ./internal/customvet/customvet
|
go vet -vettool ./internal/customvet/customvet
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
||||||
|
platform: linux/amd64
|
||||||
container_name: redis-standalone
|
container_name: redis-standalone
|
||||||
environment:
|
environment:
|
||||||
- TLS_ENABLED=yes
|
- TLS_ENABLED=yes
|
||||||
@ -23,6 +24,7 @@ services:
|
|||||||
|
|
||||||
osscluster:
|
osscluster:
|
||||||
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
||||||
|
platform: linux/amd64
|
||||||
container_name: redis-osscluster
|
container_name: redis-osscluster
|
||||||
environment:
|
environment:
|
||||||
- NODES=6
|
- NODES=6
|
||||||
@ -39,6 +41,7 @@ services:
|
|||||||
|
|
||||||
sentinel-cluster:
|
sentinel-cluster:
|
||||||
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
||||||
|
platform: linux/amd64
|
||||||
container_name: redis-sentinel-cluster
|
container_name: redis-sentinel-cluster
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
environment:
|
environment:
|
||||||
@ -58,6 +61,7 @@ services:
|
|||||||
|
|
||||||
sentinel:
|
sentinel:
|
||||||
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
||||||
|
platform: linux/amd64
|
||||||
container_name: redis-sentinel
|
container_name: redis-sentinel
|
||||||
depends_on:
|
depends_on:
|
||||||
- sentinel-cluster
|
- sentinel-cluster
|
||||||
@ -81,6 +85,7 @@ services:
|
|||||||
|
|
||||||
ring-cluster:
|
ring-cluster:
|
||||||
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:rs-7.4.0-v2}
|
||||||
|
platform: linux/amd64
|
||||||
container_name: redis-ring-cluster
|
container_name: redis-ring-cluster
|
||||||
environment:
|
environment:
|
||||||
- NODES=3
|
- NODES=3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user