9
9
pull_request :
10
10
branches : [ master ]
11
11
12
+ env :
13
+ TARANTOOL_REGISTRY : " registry.ps.tarantool.io/"
14
+ TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX : " registry.ps.tarantool.io/"
15
+
12
16
jobs :
13
17
tests-cartridge-container :
14
18
runs-on : ubuntu-latest
25
29
java-version : ' 8'
26
30
cache : ' maven'
27
31
32
+ - name : Docker login to private registry
33
+ run : docker login "$TARANTOOL_REGISTRY" -u admin -p "${{ secrets.TARANTOOL_REGISTRY_PASSWORD }}"
34
+
28
35
- name : Build and run unit tests
29
36
run : ./mvnw -B verify -Djacoco.destFile=target/jacoco-cartridge-container.exec --file pom.xml
30
37
@@ -35,39 +42,15 @@ jobs:
35
42
TARANTOOL_VERSION : " 2.11.2-ubuntu20.04"
36
43
run : ./mvnw -B test -P integration -Djacoco.destFile=target/jacoco-cartridge-container.exec --file pom.xml
37
44
45
+ - name : Print system images
46
+ run : docker images
47
+
38
48
- name : Upload jacoco exec results
39
49
uses : actions/upload-artifact@v2
40
50
with :
41
51
name : tests-cartridge-container-jacoco
42
52
path : " **/jacoco-cartridge-container.exec"
43
53
44
- tests-ee :
45
- runs-on : ubuntu-latest
46
- timeout-minutes : 20
47
- steps :
48
- - uses : actions/checkout@v4
49
-
50
- - name : Set up JDK 1.8
51
- uses : actions/setup-java@v3
52
- with :
53
- distribution : ' zulu'
54
- java-version : ' 8'
55
- cache : ' maven'
56
-
57
- - name : Run enterprise tests
58
- env :
59
- TARANTOOL_SERVER_USER : root
60
- TARANTOOL_SERVER_GROUP : root
61
- DOWNLOAD_HOST : https://tarantool:${{ secrets.DOWNLOAD_SDK_TOKEN }}@download.tarantool.io
62
- SDK_PATH : enterprise/release/linux/x86_64/2.11/tarantool-enterprise-sdk-nogc64-2.11.2-0-r609.linux.x86_64.tar.gz
63
- run : ./mvnw -B test -P enterprise -Djacoco.destFile=target/jacoco-ee.exec --file pom.xml
64
-
65
- - name : Upload jacoco exec results
66
- uses : actions/upload-artifact@v2
67
- with :
68
- name : tests-ee-jacoco
69
- path : " **/jacoco-ee.exec"
70
-
71
54
tests-tarantool-container :
72
55
runs-on : ubuntu-latest
73
56
timeout-minutes : 25
@@ -85,13 +68,19 @@ jobs:
85
68
java-version : ' 8'
86
69
cache : ' maven'
87
70
71
+ - name : Docker login to private registry
72
+ run : docker login "$TARANTOOL_REGISTRY" -u admin -p "${{ secrets.TARANTOOL_REGISTRY_PASSWORD }}"
73
+
88
74
- name : Build and run integration matrix tests
89
75
env :
90
76
TARANTOOL_VERSION : ${{ matrix.tarantool-version }}
91
77
TARANTOOL_SERVER_USER : root
92
78
TARANTOOL_SERVER_GROUP : root
93
79
run : ./mvnw -B test -P tarantool-container -Djacoco.destFile=target/jacoco-tarantool-container.exec --file pom.xml
94
80
81
+ - name : Print system images
82
+ run : docker images
83
+
95
84
- name : Upload jacoco exec results
96
85
uses : actions/upload-artifact@v2
97
86
with :
102
91
name : Jacoco Merge Results
103
92
needs :
104
93
- tests-cartridge-container
105
- - tests-ee
106
94
- tests-tarantool-container
107
95
runs-on : ubuntu-latest
108
96
steps :
@@ -120,11 +108,6 @@ jobs:
120
108
name : tests-cartridge-container-jacoco
121
109
path : .
122
110
123
- - uses : actions/download-artifact@v2
124
- with :
125
- name : tests-ee-jacoco
126
- path : .
127
-
128
111
- uses : actions/download-artifact@v2
129
112
with :
130
113
name : tests-tarantool-container-jacoco
0 commit comments