Skip to content

Commit 45bd81c

Browse files
committed
[BitSail] Add java 11 unit test to cicd
1 parent d392df9 commit 45bd81c

File tree

3 files changed

+33
-9
lines changed

3 files changed

+33
-9
lines changed

.github/workflows/cicd.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,49 @@ jobs:
6464
run:
6565
mvn clean verify -pl bitsail-dist -am -U -DskipUT=false -DskipITCase=true
6666

67-
# This workflow contains a single job called "integration-tests"
68-
integration-tests:
69-
name: Integration Test
67+
# This workflow contains a single job called "unit-test"
68+
unit-test-jdk11:
69+
name: Unit Test JDK11
7070
# The type of runner that the job will run on
7171
runs-on: ${{ matrix.os }}
7272
strategy:
7373
matrix:
7474
os: [ ubuntu-latest ]
75+
maven: [ '3.8.2' ]
76+
java: [ '11' ]
7577
# Steps represent a sequence of tasks that will be executed as part of the job
7678
steps:
7779
- run: git config --global core.longpaths true
7880
- uses: actions/checkout@v3
79-
- name: Set up JDK 8
81+
- name: Set up JDK 11
8082
uses: actions/setup-java@v3
8183
with:
82-
java-version: '8'
8384
distribution: 'adopt'
8485
architecture: x64
8586

86-
- name: Maven Verify Integration Test
87+
- name: Maven Verify Unit Test
8788
run:
88-
mvn clean verify -pl bitsail-dist -am -U -DskipUT=true -DskipITCase=false
89+
mvn clean verify -pl bitsail-dist -am -U -DskipUT=false -DskipITCase=true
90+
91+
# This workflow contains a single job called "integration-tests"
92+
# integration-tests:
93+
# name: Integration Test
94+
# # The type of runner that the job will run on
95+
# runs-on: ${{ matrix.os }}
96+
# strategy:
97+
# matrix:
98+
# os: [ ubuntu-latest ]
99+
# # Steps represent a sequence of tasks that will be executed as part of the job
100+
# steps:
101+
# - run: git config --global core.longpaths true
102+
# - uses: actions/checkout@v3
103+
# - name: Set up JDK 8
104+
# uses: actions/setup-java@v3
105+
# with:
106+
# java-version: '8'
107+
# distribution: 'adopt'
108+
# architecture: x64
109+
#
110+
# - name: Maven Verify Integration Test
111+
# run:
112+
# mvn clean verify -pl bitsail-dist -am -U -DskipUT=true -DskipITCase=false

website/en/documents/start/env_setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ English | [简体中文](/zh/documents/start/env_setup.md)
77

88
**Bitsail** supports run integration tests on local IDE. To achieve that, you need:
99

10-
- JDK1.8
10+
- JDK1.8 or JDK11
1111
- maven 3.6+
1212
- [Docker desktop](https://www.docker.com/products/docker-desktop/)
1313

website/zh/documents/start/env_setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
**Bitsail**支持在本地IDE运行集成测试,为此需要:
1010

11-
- JDK1.8
11+
- JDK1.8 或 JDK11
1212
- maven 3.6+
1313
- [Docker desktop](https://www.docker.com/products/docker-desktop/)
1414

0 commit comments

Comments
 (0)