-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (52 loc) · 1.53 KB
/
cache-redis-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
62
63
name: Redis Cache Tests
on:
workflow_dispatch:
pull_request:
branches:
- 'master'
- 'release-*'
push:
branches:
- 'master'
- 'beta'
- 'release-*'
jobs:
test-redis:
name: Test Redis Cache
env:
GIT_REF: ${{ github.ref }}
GIT_SHA: ${{ github.sha }}
POM_PATH: ./pom.xml
runs-on: ubuntu-latest
strategy:
matrix:
redis-version: [ 6 ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: 'temurin'
- name: Setup Maven
uses: stCarolas/[email protected]
with:
maven-version: ${{ vars.MAVEN_VERSION }}
- name: Setup Maven settings
uses: whelk-io/maven-settings-xml-action@v14
with:
repositories: '[{ "id": "github-genexuslabs", "url": "https://maven.pkg.github.com/genexuslabs/Private-Maven-for-GX", "releases": { "enabled": "true" }, "snapshots": { "enabled": "true" } }]'
servers: '[{ "id": "github-genexuslabs", "username": "genexusbot", "password": "${{ secrets.SECURE_TOKEN }}" }]'
- name: Install
run: mvn -B install --file $POM_PATH -DskipTests
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}
- name: Test
env:
EXECUTE_REDIS_TESTS: true
run: mvn -B -pl gxcache-redis test --file $POM_PATH