1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-07 12:42:55 +03:00

Test against Redis CE (#3191)

* Create workflow that tests go-redis against docker

* Add docker compose file

* Add docker compose file

* Change command in docker compose

* Load modules locally

* test varios redis versions

* add env var to test-redis-enterprise action

* cleaning code

* cleaning code
This commit is contained in:
ofekshenawa
2024-12-16 19:04:39 +02:00
committed by GitHub
parent caa2592db7
commit 91dddc2e11
4 changed files with 69 additions and 3 deletions

View File

@@ -66,6 +66,7 @@ var cluster = &clusterScenario{
}
var RECluster = false
var USE_CONTAINERIZED_REDIS = false
func registerProcess(port string, p *redisProcess) {
if processes == nil {
@@ -82,8 +83,8 @@ var _ = BeforeSuite(func() {
}
var err error
RECluster, _ = strconv.ParseBool(os.Getenv("RE_CLUSTER"))
if !RECluster {
USE_CONTAINERIZED_REDIS, _ = strconv.ParseBool(os.Getenv("USE_CONTAINERIZED_REDIS"))
if !RECluster || !USE_CONTAINERIZED_REDIS {
redisMain, err = startRedis(redisPort)
Expect(err).NotTo(HaveOccurred())