-
Notifications
You must be signed in to change notification settings - Fork 244
49 lines (39 loc) · 1.53 KB
/
TLS-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
name: TLS test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [ 'zulu', 'temurin', 'adopt', 'corretto' ]
name: Java ${{ matrix.distribution }} sample
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: ${{ matrix.distribution }}
cache: maven
- name: add host and copy properties
run: |
echo -e "127.0.0.1 pd \n127.0.0.1 tikv" | sudo tee -a /etc/hosts
sudo cp -r config /config
cp core/src/test/resources/tidb_config.properties.TLS.template core/src/test/resources/tidb_config.properties
- name: build docker
run: docker-compose -f docker-compose-TiDB-TLS.yaml up -d
- name: build
run: mvn clean package -Dmaven.test.skip=true -B
- name: test TLS
run: mvn test -am -pl core -Dtest=moo -DwildcardSuites=com.pingcap.tispark.tls.JDBCTLSSuite,com.pingcap.tispark.tls.TiKVClientTLSSuite,com.pingcap.tispark.tls.TiSparkTLSSuite -DfailIfNoTests=false
- name: make JKS configuration
run: sed -i 's/^#//' core/src/test/resources/tidb_config.properties
- name: test JKS
run: mvn test -am -pl core -Dtest=moo -DwildcardSuites=com.pingcap.tispark.tls.JDBCTLSSuite,com.pingcap.tispark.tls.TiKVClientTLSSuite,com.pingcap.tispark.tls.TiSparkTLSSuite -DfailIfNoTests=false