-
Notifications
You must be signed in to change notification settings - Fork 25
73 lines (71 loc) · 2.22 KB
/
Copy pathbuild.yml
File metadata and controls
73 lines (71 loc) · 2.22 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
name: build
on:
pull_request:
push:
branches:
- master
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
services:
redis-stack-server:
# Redis 8 bundles Search, JSON, TimeSeries and Bloom; the redis-stack images are no longer updated
image: redis:8.8
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 52567:6379
redisai:
image: redislabs/redisai:edge-cpu-bionic
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 52568:6379
redisgears:
image: redislabs/redisgears:latest
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6383:6379
redisgraph:
# FalkorDB is the maintained continuation of RedisGraph (same GRAPH.* protocol)
image: falkordb/falkordb:latest
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6384:6379
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: maven
- name: Print Redis server versions
run: |
for c in $(docker ps -q); do
echo "== $(docker inspect --format '{{.Config.Image}}' $c)"
docker exec $c redis-cli INFO server | grep -E "redis_version|redis_mode" || true
docker exec $c redis-cli MODULE LIST || true
docker exec $c redis-cli CONFIG GET "search*" | head -40 || true
done
- name: Build with Maven
run: mvn --fail-at-end clean install -DREDIS_HOST=localhost -DREDIS_PORT=52567 -DREDISAI_PORT=52568 -DREDIS_GEARS_PORT=6383 -DREDIS_GRAPH_PORT=6384 -Dgpg.skip --file pom.xml
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}