-
Notifications
You must be signed in to change notification settings - Fork 66
83 lines (77 loc) · 2.44 KB
/
integration.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
name: Integration Tests
on:
push:
paths-ignore:
- 'docs/**'
- '**/*.rst'
- '**/*.md'
branches:
- master
- '[0-9].[0-9]'
pull_request:
branches:
- master
- '[0-9].[0-9]'
schedule:
- cron: "5 1 * * *"
jobs:
tls_build_and_test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x]
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version}}
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: redis/redis
path: redis
- name: generate ssl certificates
run: |
cd redis
./utils/gen-test-certs.sh
chmod a+r tests/tls/*
- name: copy redisearch binary
run: |
docker run --rm --entrypoint cat redislabs/redisearch:edge /usr/lib/redis/modules/redisearch.so > redisearch.so
docker run --rm --entrypoint cat redislabs/redisearch:edge /usr/lib/redis/modules/rejson.so > rejson.so
chmod 755 *.so
- name: Start redisearch docker with tls
run: |
docker run -d -v $(pwd)/redisearch.so:/data/redisearch.so \
-v $(pwd)/rejson.so:/data/rejson.so \
-v $(pwd)/redis/tests/tls/:/data \
-p 6379:6379 redisfab/redis:6.2-latest-x64-bullseye redis-server \
--tls-port 6379 --port 0 \
--tls-cert-file /data/redis.crt \
--tls-key-file /data/redis.key \
--tls-ca-cert-file /data/ca.crt \
--tls-auth-clients no --loadmodule /data/redisearch.so --loadmodule /data/rejson.so
- name : Run Examples
run: |
make examples TLS_CERT=redis/tests/tls/redis.crt TLS_KEY=redis/tests/tls/redis.key TLS_CACERT=redis/tests/tls/ca.crt
build_and_test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x]
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version}}
- uses: actions/checkout@v3
- name: Start redisearch docker
run: |
docker run -d -p 6379:6379 redislabs/redisearch:edge
- run: make get
- run: make checkfmt
- run: make test
- run: make godoc_examples
- run: make coverage
- run: bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov)