-
Notifications
You must be signed in to change notification settings - Fork 21
143 lines (140 loc) · 5.57 KB
/
maven_test.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: maven_build_test
on: [ push, pull_request ]
jobs:
maven-test-job:
runs-on: ubuntu-latest
services:
vitess1202:
image: vtdriverio/vtdriver-env:latest
options: >-
--health-cmd "mysqladmin ping -h127.0.0.1 -P15306 -umysql_user -pmysql_password"
--health-interval 5s
--health-timeout 5s
--health-retries 10
--health-start-period 60s
-it
ports:
- 16100:16100
- 16101:16101
- 16102:16102
- 16300:16300
- 16301:16301
- 16302:16302
- 16400:16400
- 16401:16401
- 16402:16402
- 15000:15000
- 15001:15001
- 15306:15306
- 15100:15100
- 15101:15101
- 15102:15102
- 15300:15300
- 15301:15301
- 15302:15302
- 15400:15400
- 15401:15401
- 15402:15402
- 2379:2379
- 17100:17100
- 17101:17101
- 17102:17102
- 17300:17300
- 17301:17301
- 17302:17302
- 17400:17400
- 17401:17401
- 17402:17402
env:
HOST_IP: 127.0.0.1
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Test locally
run: mvn clean test -Dtest=\
com.jd.jdbc.cache.LRUCacheTest,\
com.jd.jdbc.evalengine.ArithmeticTest,\
com.jd.jdbc.planbuilder.PlanTest,\
com.jd.jdbc.planbuilder.AdvancedPlanTest,\
com.jd.jdbc.sqlparser.NormalizeRewritePutTest,\
com.jd.jdbc.sqlparser.SmartNormalizeDateTest,\
com.jd.jdbc.sqlparser.SmartNormalizeTest1,\
com.jd.jdbc.sqlparser.SmartNormalizeTest2,\
com.jd.jdbc.context.ContextTest,\
com.jd.jdbc.sqltypes.VtValueTest,\
com.jd.jdbc.topo.discovery.TestHealthCheck,\
com.jd.jdbc.util.SplitMultiQueryUtilsTest
- name: Test driver
run: mvn clean test -Dtest=\
com.jd.jdbc.concurrency.AllErrorRecorderTest,\
com.jd.jdbc.engine.destination.DestinationTest,\
com.jd.jdbc.engine.RouteEngineTest,\
com.jd.jdbc.engine.DeleteEngineTest,\
com.jd.jdbc.engine.InsertEngineTest,\
com.jd.jdbc.engine.SelectEngineTest,\
com.jd.jdbc.engine.UpdateEngineTest,\
com.jd.jdbc.engine.join.ShardedJoinTest,\
com.jd.jdbc.engine.join.UnShardedJoinTest,\
com.jd.jdbc.engine.join.JoinTypeTest,\
com.jd.jdbc.engine.subquery.ShardedSubqueryTest,\
com.jd.jdbc.engine.subquery.UnShardedSubqueryTest,\
com.jd.jdbc.engine.union.ShardedUnionTest,\
com.jd.jdbc.engine.union.UnShardedUnionTest,\
com.jd.jdbc.planbuilder.PlanCacheTest,\
com.jd.jdbc.show.ShowVitessShardsTest,\
com.jd.jdbc.sqlparser.ChangeSchemaTest,\
com.jd.jdbc.sqlparser.KeywordTest,\
com.jd.jdbc.vitess.TimeTest,\
com.jd.jdbc.vitess.TransactionTest,\
com.jd.jdbc.vitess.TransactionUnShardTest,\
com.jd.jdbc.vitess.TypeTest,\
com.jd.jdbc.vitess.VitessAutoGeneratedKeysTest,\
com.jd.jdbc.vitess.VitessDriverConsolidatorTest,\
com.jd.jdbc.vitess.VitessDriverDatabaseMetaDataTest,\
com.jd.jdbc.vitess.VitessDriverFindColumnByName,\
com.jd.jdbc.vitess.VitessDriverReadWriteSplit,\
com.jd.jdbc.vitess.VitessDriverUnshardedTest,\
com.jd.jdbc.vitess.allowMultiQueries.VitessDriverAllowMultiQuerieTest,\
com.jd.jdbc.vitess.allowMultiQueries.VitessDriverMultiQuerySubsectionTest,\
com.jd.jdbc.vitess.allowMultiQueries.VitessDriverMultiQueriesTest
- name: Test split table
run: mvn clean test -Dtest=\
com.jd.jdbc.table.unshard.ConcurrentSplitTableUnshardTest,\
com.jd.jdbc.table.unshard.LastInsertIdUnShardTest,\
com.jd.jdbc.table.unshard.TableAutoGeneratedKeysUnShardTest,\
com.jd.jdbc.table.unshard.TransactionUnShardTest,\
com.jd.jdbc.table.engine.unshard.DeleteUnShardTest,\
com.jd.jdbc.table.engine.unshard.InsertUnShardTest,\
com.jd.jdbc.table.engine.unshard.SelectUnShardTest,\
com.jd.jdbc.table.engine.unshard.UpdateUnShardTest,\
com.jd.jdbc.table.ConcurrentSplitTableTest,\
com.jd.jdbc.table.LastInsertIdTest,\
com.jd.jdbc.table.engine.join.JoinTest,\
com.jd.jdbc.table.engine.subquery.SubqueryTest,\
com.jd.jdbc.table.engine.union.UnionTest,\
com.jd.jdbc.table.engine.DeleteTest,\
com.jd.jdbc.table.engine.InsertTest,\
com.jd.jdbc.table.engine.SelectTest,\
com.jd.jdbc.table.engine.UpdateTest,\
com.jd.jdbc.table.TableAutoGeneratedKeysTest,\
com.jd.jdbc.table.multiquery.MultiqueryTest,\
com.jd.jdbc.table.streamquery.StreamQueryTest,\
com.jd.jdbc.table.TransactionTest,\
com.jd.jdbc.table.TestParallelQuery,\
com.jd.jdbc.table.batch.BatchTest
- name: Test timezone
run: mvn clean test -Dtest=\
com.jd.jdbc.vitess.TimeZoneTest,\
com.jd.jdbc.vitess.TimezoneConfigureTest
- name: Test charEncoding
run: mvn clean test -Dtest=\
com.jd.jdbc.engine.CharEncodingTest
- name: install vtdriver
run: mvn clean install -Dmaven.test.skip=true
- name: Test starter
run: mvn -f ./vtdriver-spring-boot-starter/pom.xml clean test