Skip to content

Commit 4331796

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

File tree

3 files changed

+40
-15
lines changed

3 files changed

+40
-15
lines changed

.github/workflows/cicd.yml

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,50 @@ 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:
77-
- run: git config --global core.longpaths true
78-
- uses: actions/checkout@v3
79-
- name: Set up JDK 8
80-
uses: actions/setup-java@v3
81-
with:
82-
java-version: '8'
83-
distribution: 'adopt'
84-
architecture: x64
79+
# - run: git config --global core.longpaths true
80+
# - uses: actions/checkout@v3
81+
# - name: Set up JDK 11
82+
# uses: actions/setup-java@v3
83+
# with:
84+
# java-version: '11'
85+
# distribution: 'adopt'
86+
# architecture: x64
8587

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