-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 1.5 KB
/
integration-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Integration Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
integration-test:
strategy:
matrix:
version: [ 11, 17, 21 ]
runs-on: ubuntu-latest
services:
redis1:
image: himadieievsv/redis-cluster:7.2
ports:
- "7010-7012:7010-7012"
env:
INITIAL_PORT: 7010
options: >-
--health-cmd "redis-cli -p 7010 ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis2:
image: himadieievsv/redis-cluster:7.2
ports:
- "7020-7022:7020-7022"
env:
INITIAL_PORT: 7020
options: >-
--health-cmd "redis-cli -p 7020 ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis3:
image: himadieievsv/redis-cluster:7.2
ports:
- "7030-7032:7030-7032"
env:
INITIAL_PORT: 7030
options: >-
--health-cmd "redis-cli -p 7030 ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.version }}
distribution: 'temurin'
- name: Run tests
run: |
./gradlew \
:redpulsar-core:test \
:redpulsar-jedis:test \
:redpulsar-lettuce:test \
-DexcludeTags="unit" -i