@@ -13,7 +13,31 @@ concurrency:
13
13
cancel-in-progress : true
14
14
15
15
jobs :
16
+ Build-IGinX-Dev :
17
+ runs-on : ubuntu-latest
18
+ matrix :
19
+ java : [ 8 ]
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+ - uses : actions/setup-java@v3
23
+ with :
24
+ java-version : ${{ matrix.java }}
25
+ - name : Cache local Maven repository
26
+ uses : actions/cache@v3
27
+ with :
28
+ path : ~/.m2/repository
29
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30
+ restore-keys : |
31
+ ${{ runner.os }}-maven-
32
+ - name : Maven Package
33
+ run : mvn clean package -DskipTests
34
+ - name : Upload Build Outputs and Intermediates
35
+ uses : actions/upload-artifact@v3
36
+ with :
37
+ name : IGinX-Java${{ matrix.java }}-Dev
38
+ path : .
16
39
InfluxDB-Capacity-Expansion-ds :
40
+ needs : Build-IGinX-Dev
17
41
strategy :
18
42
fail-fast : false
19
43
# max-parallel: 20
@@ -23,16 +47,19 @@ jobs:
23
47
os : [ ubuntu-latest, macos-latest ]
24
48
runs-on : ${{ matrix.os }}
25
49
steps :
26
- - uses : actions/checkout@v2
27
- - name : Set up Python ${{ matrix.python-version }}
50
+ - name : Download IGinX-Java${{ matrix.java }}-Dev
51
+ uses : actions/download-artifact@v3
52
+ with :
53
+ name : IGinX-Java${{ matrix.java }}-Dev
54
+ - name : Setup Python ${{ matrix.python-version }}
28
55
uses : actions/setup-python@v3
29
56
with :
30
57
python-version : ${{ matrix.python-version }}
31
- - name : Install Python dependencies
58
+ - name : Install Python Dependencies
32
59
run : |
33
60
python -m pip install --upgrade pip
34
- - name : Set up JDK ${{ matrix.java }}
35
- uses : actions/setup-java@v1
61
+ - name : Setup JDK ${{ matrix.java }}
62
+ uses : actions/setup-java@v3
36
63
with :
37
64
java-version : ${{ matrix.java }}
38
65
- name : Run ZooKeeper
59
86
echo "$RUNNER_OS is not supported"
60
87
exit 1
61
88
fi
62
- - name : Install with Maven
63
- run : mvn clean package -DskipTests
64
89
- name : Write history Data
65
90
run : |
66
91
mvn test -q -Dtest=InfluxDBHistoryDataGeneratorTest -DfailIfNoTests=false
71
96
nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" &
72
97
73
98
InfluxDB-SQL-ds :
99
+ needs : Build-IGinX-Dev
74
100
strategy :
75
101
fail-fast : false
76
102
# max-parallel: 20
@@ -80,24 +106,21 @@ jobs:
80
106
os : [ ubuntu-latest, macos-latest ]
81
107
runs-on : ${{ matrix.os }}
82
108
steps :
83
- - uses : actions/checkout@v2
84
- - name : Set up Python ${{ matrix.python-version }}
109
+ - name : Download IGinX-Java${{ matrix.java }}-Dev
110
+ uses : actions/download-artifact@v3
111
+ with :
112
+ name : IGinX-Java${{ matrix.java }}-Dev
113
+ - name : Setup Python ${{ matrix.python-version }}
85
114
uses : actions/setup-python@v3
86
115
with :
87
116
python-version : ${{ matrix.python-version }}
88
- - name : Install Python dependencies
117
+ - name : Install Python Dependencies
89
118
run : |
90
119
python -m pip install --upgrade pip
91
- - name : Set up JDK ${{ matrix.java }}
92
- uses : actions/setup-java@v1
120
+ - name : Setup JDK ${{ matrix.java }}
121
+ uses : actions/setup-java@v3
93
122
with :
94
123
java-version : ${{ matrix.java }}
95
- - name : Cache Maven packages
96
-
97
- with :
98
- path : ~/.m2
99
- key : ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
100
- restore-keys : ${{ runner.os }}-m2
101
124
- name : Run ZooKeeper
102
125
run : |
103
126
if [ "$RUNNER_OS" == "Linux" ]; then
@@ -122,20 +145,19 @@ jobs:
122
145
echo "$RUNNER_OS is not supported"
123
146
exit 1
124
147
fi
125
- - name : Install with Maven
126
- run : mvn clean package -DskipTests
127
148
- name : Start IginX
128
149
run : |
129
150
chmod +x "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh"
130
151
nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" &
131
152
- name : A Lame Integration Test with Maven for SQL
132
- run : mvn test -q -Dtest=InfluxDBSQLSessionIT -DfailIfNoTests=false
153
+ run : mvn surefire: test -q -Dtest=InfluxDBSQLSessionIT -DfailIfNoTests=false
133
154
- uses : codecov/codecov-action@v1
134
155
with :
135
156
file : ./**/target/site/jacoco/jacoco.xml
136
157
name : codecov
137
158
138
159
InfluxDB-SQL-SessionPool-ds :
160
+ needs : Build-IGinX-Dev
139
161
strategy :
140
162
fail-fast : false
141
163
# max-parallel: 20
@@ -145,24 +167,21 @@ jobs:
145
167
os : [ ubuntu-latest, macos-latest ]
146
168
runs-on : ${{ matrix.os }}
147
169
steps :
148
- - uses : actions/checkout@v2
149
- - name : Set up Python ${{ matrix.python-version }}
170
+ - name : Download IGinX-Java${{ matrix.java }}-Dev
171
+ uses : actions/download-artifact@v3
172
+ with :
173
+ name : IGinX-Java${{ matrix.java }}-Dev
174
+ - name : Setup Python ${{ matrix.python-version }}
150
175
uses : actions/setup-python@v3
151
176
with :
152
177
python-version : ${{ matrix.python-version }}
153
- - name : Install Python dependencies
178
+ - name : Install Python Dependencies
154
179
run : |
155
180
python -m pip install --upgrade pip
156
- - name : Set up JDK ${{ matrix.java }}
157
- uses : actions/setup-java@v1
181
+ - name : Setup JDK ${{ matrix.java }}
182
+ uses : actions/setup-java@v3
158
183
with :
159
184
java-version : ${{ matrix.java }}
160
- - name : Cache Maven packages
161
-
162
- with :
163
- path : ~/.m2
164
- key : ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
165
- restore-keys : ${{ runner.os }}-m2
166
185
- name : Run ZooKeeper
167
186
run : |
168
187
if [ "$RUNNER_OS" == "Linux" ]; then
@@ -187,8 +206,6 @@ jobs:
187
206
echo "$RUNNER_OS is not supported"
188
207
exit 1
189
208
fi
190
- - name : Install with Maven
191
- run : mvn clean package -DskipTests
192
209
- name : Start IginX
193
210
uses : ./.github/actions/iginxRunner
194
211
with :
@@ -204,7 +221,7 @@ jobs:
204
221
with :
205
222
version : ${VERSION}
206
223
- name : A Lame Integration Test with Maven for SQL
207
- run : mvn test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false
224
+ run : mvn surefire: test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false
208
225
- uses : codecov/codecov-action@v1
209
226
with :
210
227
file : ./**/target/site/jacoco/jacoco.xml
0 commit comments