Skip to content

Commit ab3a282

Browse files
committed
test
1 parent 6b3b356 commit ab3a282

1 file changed

Lines changed: 39 additions & 42 deletions

File tree

.github/workflows/test.yml

Lines changed: 39 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
1-
#name: Test
2-
#
3-
#on: [ push, pull_request ]
4-
#
5-
#jobs:
6-
# test:
7-
# strategy:
8-
# fail-fast: false
9-
# matrix:
10-
# include:
11-
# - os: windows-latest
12-
## - os: macos-latest
13-
## arch: amd64
14-
## - os: macos-latest
15-
## arch: arm64
16-
## variant: v8
17-
# runs-on: ${{ matrix.os }}
18-
# steps:
19-
# - name: Check out Git repository
20-
# uses: actions/checkout@main
21-
#
22-
# # 安装jre Windows
23-
# - name: Install Jre for Windows
24-
# uses: actions/setup-java@main
25-
# with:
26-
# java-version: "17"
27-
# distribution: "temurin"
28-
# java-package: "jre"
29-
#
30-
# # java.security 开放tls1 Windows
31-
# - name: Enable tls1
32-
# run: |
33-
# sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
34-
# cat "${{ env.JAVA_HOME }}/conf/security/java.security"
35-
#
36-
##
37-
## # 编译服务端java版本
38-
## - name: Build Java
39-
## run: mvn clean package -B '-Dmaven.test.skip=true' -f ali-dbhub-server/pom.xml
40-
#
41-
## - name: Test with Maven
42-
## run: mvn test -B -Dmaven.test.skip=false -pl ali-dbhub-server-test -am -f ali-dbhub-server/pom.xml
1+
name: Test
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- os: windows-latest
12+
- os: macos-latest
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Check out Git repository
16+
uses: actions/checkout@main
17+
18+
# 安装jre Windows
19+
- name: Install Jre for Windows
20+
uses: actions/setup-java@main
21+
with:
22+
java-version: "17"
23+
distribution: "temurin"
24+
java-package: "jre"
25+
26+
# java.security 开放tls1 Windows
27+
- name: Enable tls1
28+
if: ${{ runner.os == 'Windows' }}
29+
run: |
30+
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
31+
cat "${{ env.JAVA_HOME }}/conf/security/java.security"
32+
33+
34+
# java.security 开放tls1 macOS
35+
- name: Enable tls1
36+
if: ${{ runner.os == 'macOS' }}
37+
run: |
38+
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" $JAVA_HOME/conf/security/java.security
39+
cat $JAVA_HOME/conf/security/java.security

0 commit comments

Comments
 (0)