@@ -13,7 +13,36 @@ concurrency:
1313 cancel-in-progress : true
1414
1515jobs :
16+ Build-IGinX-Dev :
17+ strategy :
18+ matrix :
19+ java : [ 8 ]
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v3
23+ - uses : actions/setup-java@v3
24+ with :
25+ distribution : ' zulu'
26+ java-version : ${{ matrix.java }}
27+ - name : Cache local Maven repository
28+ uses : actions/cache@v3
29+ with :
30+ path : ~/.m2/repository
31+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32+ restore-keys : |
33+ ${{ runner.os }}-maven-
34+ - name : Cache Maven Package Outputs and Intermediates
35+ id : cache-maven-package
36+ uses : actions/cache@v3
37+ with :
38+ path : /home/runner/work/IGinX/IGinX
39+ key : build-${{ github.run_id }}
40+ - name : Maven Package
41+ if : steps.cache-maven-package.outputs.cache-hit != 'true'
42+ run : mvn clean package -DskipTests
43+
1644 InfluxDB-Capacity-Expansion-ds :
45+ needs : Build-IGinX-Dev
1746 strategy :
1847 fail-fast : false
1948 # max-parallel: 20
@@ -23,18 +52,26 @@ jobs:
2352 os : [ ubuntu-latest, macos-latest ]
2453 runs-on : ${{ matrix.os }}
2554 steps :
26- - uses : actions/checkout@v2
27- - name : Set up Python ${{ matrix.python-version }}
55+ - uses : actions/setup-java@v3
56+ with :
57+ distribution : ' zulu'
58+ java-version : ${{ matrix.java }}
59+ - name : Cache Maven Package Outputs and Intermediates
60+ id : cache-maven-package
61+ uses : actions/cache@v3
62+ with :
63+ path : /home/runner/work/IGinX/IGinX
64+ key : build-${{ github.run_id }}
65+ - name : Check Cache Hit
66+ if : steps.cache-maven-package.outputs.cache-hit != 'true'
67+ run : exit 1
68+ - name : Setup Python ${{ matrix.python-version }}
2869 uses : actions/setup-python@v3
2970 with :
3071 python-version : ${{ matrix.python-version }}
31- - name : Install Python dependencies
72+ - name : Install Python Dependencies
3273 run : |
3374 python -m pip install --upgrade pip
34- - name : Set up JDK ${{ matrix.java }}
35- uses : actions/setup-java@v1
36- with :
37- java-version : ${{ matrix.java }}
3875 - name : Run ZooKeeper
3976 run : |
4077 if [ "$RUNNER_OS" == "Linux" ]; then
5996 echo "$RUNNER_OS is not supported"
6097 exit 1
6198 fi
62- - name : Install with Maven
63- run : mvn clean package -DskipTests
6499 - name : Write history Data
65100 run : |
66101 mvn test -q -Dtest=InfluxDBHistoryDataGeneratorTest -DfailIfNoTests=false
71106 nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" &
72107
73108 InfluxDB-SQL-ds :
109+ needs : Build-IGinX-Dev
74110 strategy :
75111 fail-fast : false
76112 # max-parallel: 20
@@ -80,24 +116,26 @@ jobs:
80116 os : [ ubuntu-latest, macos-latest ]
81117 runs-on : ${{ matrix.os }}
82118 steps :
83- - uses : actions/checkout@v2
84- - name : Set up Python ${{ matrix.python-version }}
119+ - uses : actions/setup-java@v3
120+ with :
121+ distribution : ' zulu'
122+ java-version : ${{ matrix.java }}
123+ - name : Cache Maven Package Outputs and Intermediates
124+ id : cache-maven-package
125+ uses : actions/cache@v3
126+ with :
127+ path : /home/runner/work/IGinX/IGinX
128+ key : build-${{ github.run_id }}
129+ - name : Check Cache Hit
130+ if : steps.cache-maven-package.outputs.cache-hit != 'true'
131+ run : exit 1
132+ - name : Setup Python ${{ matrix.python-version }}
85133 uses : actions/setup-python@v3
86134 with :
87135 python-version : ${{ matrix.python-version }}
88- - name : Install Python dependencies
136+ - name : Install Python Dependencies
89137 run : |
90138 python -m pip install --upgrade pip
91- - name : Set up JDK ${{ matrix.java }}
92- uses : actions/setup-java@v1
93- with :
94- java-version : ${{ matrix.java }}
95- - name : Cache Maven packages
96- uses : actions/cache@v2.1.5
97- with :
98- path : ~/.m2
99- key : ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
100- restore-keys : ${{ runner.os }}-m2
101139 - name : Run ZooKeeper
102140 run : |
103141 if [ "$RUNNER_OS" == "Linux" ]; then
@@ -122,8 +160,6 @@ jobs:
122160 echo "$RUNNER_OS is not supported"
123161 exit 1
124162 fi
125- - name : Install with Maven
126- run : mvn clean package -DskipTests
127163 - name : Start IginX
128164 run : |
129165 chmod +x "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh"
@@ -136,6 +172,7 @@ jobs:
136172 name : codecov
137173
138174 InfluxDB-SQL-SessionPool-ds :
175+ needs : Build-IGinX-Dev
139176 strategy :
140177 fail-fast : false
141178 # max-parallel: 20
@@ -145,24 +182,26 @@ jobs:
145182 os : [ ubuntu-latest, macos-latest ]
146183 runs-on : ${{ matrix.os }}
147184 steps :
148- - uses : actions/checkout@v2
149- - name : Set up Python ${{ matrix.python-version }}
185+ - uses : actions/setup-java@v3
186+ with :
187+ distribution : ' zulu'
188+ java-version : ${{ matrix.java }}
189+ - name : Cache Maven Package Outputs and Intermediates
190+ id : cache-maven-package
191+ uses : actions/cache@v3
192+ with :
193+ path : /home/runner/work/IGinX/IGinX
194+ key : build-${{ github.run_id }}
195+ - name : Check Cache Hit
196+ if : steps.cache-maven-package.outputs.cache-hit != 'true'
197+ run : exit 1
198+ - name : Setup Python ${{ matrix.python-version }}
150199 uses : actions/setup-python@v3
151200 with :
152201 python-version : ${{ matrix.python-version }}
153- - name : Install Python dependencies
202+ - name : Install Python Dependencies
154203 run : |
155204 python -m pip install --upgrade pip
156- - name : Set up JDK ${{ matrix.java }}
157- uses : actions/setup-java@v1
158- with :
159- java-version : ${{ matrix.java }}
160- - name : Cache Maven packages
161- uses : actions/cache@v2.1.5
162- with :
163- path : ~/.m2
164- key : ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
165- restore-keys : ${{ runner.os }}-m2
166205 - name : Run ZooKeeper
167206 run : |
168207 if [ "$RUNNER_OS" == "Linux" ]; then
@@ -187,8 +226,6 @@ jobs:
187226 echo "$RUNNER_OS is not supported"
188227 exit 1
189228 fi
190- - name : Install with Maven
191- run : mvn clean package -DskipTests
192229 - name : Start IginX
193230 uses : ./.github/actions/iginxRunner
194231 with :
@@ -204,7 +241,7 @@ jobs:
204241 with :
205242 version : ${VERSION}
206243 - name : A Lame Integration Test with Maven for SQL
207- run : mvn test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false
244+ run : mvn surefire: test -q -Dtest=InfluxDBSQLSessionPoolIT -DfailIfNoTests=false
208245 - uses : codecov/codecov-action@v1
209246 with :
210247 file : ./**/target/site/jacoco/jacoco.xml
0 commit comments