-
-
Notifications
You must be signed in to change notification settings - Fork 18
60 lines (58 loc) · 1.57 KB
/
ci.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
name: CI
on:
workflow_dispatch:
pull_request:
push:
paths:
- 'src/**'
- '**/*.gradle*'
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
services:
redis-6-2-7:
image: redis:6.2.7-alpine
ports:
- 6379:6379
redis-7-0-0:
image: redis:7.0.0-alpine
ports:
- 6382:6379
rejson:
image: redislabs/rejson:2.2.0
ports:
- 6399:6379
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: "Restore Gradle cache"
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew build -no-daemon --no-parallel --stacktrace -x test
- name: Test on Redis 6.2.7
run: ./gradlew test -DREDIS_PORT=6379
- name: Test on Redis 7.0.0
run: ./gradlew test -DREDIS_PORT=6382
- name: Test on ReJson
run: ./gradlew test -DREDIS_PORT=6399 --tests io.github.crackthecodeabhi.kreds.commands.JsonCommandsTest
- name: Codecov-Umbrella
uses: codecov/codecov-action@v3
with:
directory: ./build/reports/jacoco
flags: unittests
fail_ci_if_error: true
verbose: true