Skip to content

Commit 1dcda5e

Browse files
committed
Add docker compose file
1 parent 8be51b7 commit 1dcda5e

File tree

3 files changed

+62
-121
lines changed

3 files changed

+62
-121
lines changed

.github/docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
3+
services:
4+
5+
redis:
6+
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.0-M01}
7+
container_name: redis-standalone
8+
environment:
9+
- TLS_ENABLED=yes
10+
- REDIS_CLUSTER=no
11+
- PORT=6379
12+
- TLS_PORT=6666
13+
command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""}
14+
ports:
15+
- 6379:6379
16+
- 6380:6379
17+
- 6666:6666 # TLS port
18+
volumes:
19+
- "./dockers/standalone:/redis/work"
20+
profiles:
21+
- standalone
22+
- all

.github/workflows/build.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,43 @@ jobs:
4242
uses: codecov/codecov-action@v4
4343
with:
4444
files: coverage.txt
45-
token: ${{ secrets.CODECOV_TOKEN }}
45+
token: ${{ secrets.CODECOV_TOKEN }}
46+
47+
test-redis-ce:
48+
name: test-redis-ce
49+
runs-on: ubuntu-latest
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
redis_version:
54+
- "8.0-M01"
55+
# - "7.4.1"
56+
# - "7.2.6"
57+
# - "6.2.16"
58+
go-version:
59+
- "1.19.x"
60+
- "1.20.x"
61+
- "1.21.x"
62+
63+
steps:
64+
- name: Set up ${{ matrix.go-version }}
65+
uses: actions/setup-go@v5
66+
with:
67+
go-version: ${{ matrix.go-version }}
68+
69+
- name: Checkout code
70+
uses: actions/checkout@v4
71+
72+
# Set up Docker Compose environment
73+
- name: Set up Docker Compose environment
74+
run: |
75+
docker compose -f src/test/resources/env/docker-compose.yml up -d
76+
77+
- name: Run tests
78+
run: |
79+
go test \
80+
--ginkgo.skip-file="ring_test.go" \
81+
--ginkgo.skip-file="sentinel_test.go" \
82+
--ginkgo.skip-file="osscluster_test.go" \
83+
--ginkgo.skip-file="pubsub_test.go" \
84+
--ginkgo.skip-file="gears_commands_test.go" \

.github/workflows/test-against-docker.yml

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)