File tree Expand file tree Collapse file tree 3 files changed +125
-57
lines changed
Expand file tree Collapse file tree 3 files changed +125
-57
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - ' 3.0'
8+ paths-ignore :
9+ - ' LICENSE'
10+ - ' *.md'
11+ - ' *.txt'
12+ pull_request :
13+ branches :
14+ - main
15+ - ' 3.0'
16+ paths-ignore :
17+ - ' LICENSE'
18+ - ' *.md'
19+ - ' *.txt'
20+
21+ jobs :
22+ build :
23+ strategy :
24+ matrix :
25+ # os: [ ubuntu-latest,macos-latest,windows-latest ]
26+ os : [ Ubuntu-22.04 ]
27+ java : [ 8 ]
28+ maven : [ '3.6.3' ]
29+ runs-on : ${{ matrix.os }}
30+ steps :
31+ - name : checkout TDengine
32+ uses : actions/checkout@v3
33+ with :
34+ repository : ' taosdata/TDengine'
35+ path : ' TDengine'
36+ ref : ${{ github.base_ref }}
37+
38+ - name : prepare install
39+ run : |
40+ sudo apt-get install -y libgeos-dev
41+ geos-config --version
42+
43+ - name : install TDengine
44+ run : cd TDengine && mkdir debug && cd debug && cmake .. -DBUILD_JDBC=false -DBUILD_TOOLS=false -DBUILD_HTTP=false -DBUILD_DEPENDENCY_TESTS=false && make && sudo make install
45+
46+ - name : shell
47+ run : |
48+ cat >start.sh<<EOF
49+ ulimit -n 65535 && TAOS_SUPPORT_VNODES=256 taosd
50+ EOF
51+
52+ - name : taosd
53+ run : nohup sudo sh ./start.sh &
54+
55+ - name : start taosadapter
56+ run : sudo taosadapter &
57+
58+ - name : checkout
59+ uses : actions/checkout@v3
60+
61+ - name : set up java
62+ uses : actions/setup-java@v3
63+ with :
64+ distribution : ' temurin' # See 'Supported distributions' for available options
65+ java-version : ${{ matrix.java }}
66+ java-package : jdk
67+
68+ - name : Test
69+ run : mvn -B clean verify --file pom.xml
70+
71+ - name : Upload coverage to Codecov
72+ uses : codecov/codecov-action@v4
73+ with :
74+ token : ${{ secrets.CODECOV_TOKEN }}
75+ files : target/site/jacoco/jacoco.xml
76+ flags : unittests
77+ name : codecov-umbrella
78+ fail_ci_if_error : false
79+ verbose : true
80+
81+
82+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 200200 <target >${maven.compiler.target} </target >
201201 </configuration >
202202 </plugin >
203+ <plugin >
204+ <groupId >org.jacoco</groupId >
205+ <artifactId >jacoco-maven-plugin</artifactId >
206+ <version >0.8.12</version >
207+ <executions >
208+ <!-- Prepare JaCoCo agent before tests run -->
209+ <execution >
210+ <id >prepare-agent</id >
211+ <goals >
212+ <goal >prepare-agent</goal >
213+ </goals >
214+ </execution >
215+ <!-- Generate JaCoCo report after tests run -->
216+ <execution >
217+ <id >report</id >
218+ <goals >
219+ <goal >report</goal >
220+ </goals >
203221
222+ <phase >verify</phase >
223+ </execution >
224+ <!-- Optionally check coverage thresholds -->
225+ <execution >
226+ <id >check</id >
227+ <goals >
228+ <goal >check</goal >
229+ </goals >
230+ <configuration >
231+ <rules >
232+ <rule >
233+ <element >BUNDLE</element >
234+ <limits >
235+ <limit >
236+ <counter >INSTRUCTION</counter >
237+ <value >COVEREDRATIO</value >
238+ <minimum >0.50</minimum >
239+ </limit >
240+ </limits >
241+ </rule >
242+ </rules >
243+ </configuration >
244+ </execution >
245+ </executions >
246+ </plugin >
204247 </plugins >
205248
206249 <resources >
You can’t perform that action at this time.
0 commit comments