Skip to content

Commit

Permalink
[BitSail] Add java 11 unit test to cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
garyli1019 committed Dec 12, 2022
1 parent d392df9 commit 45bd81c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,49 @@ jobs:
run:
mvn clean verify -pl bitsail-dist -am -U -DskipUT=false -DskipITCase=true

# This workflow contains a single job called "integration-tests"
integration-tests:
name: Integration Test
# This workflow contains a single job called "unit-test"
unit-test-jdk11:
name: Unit Test JDK11
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
maven: [ '3.8.2' ]
java: [ '11' ]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- run: git config --global core.longpaths true
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
architecture: x64

- name: Maven Verify Integration Test
- name: Maven Verify Unit Test
run:
mvn clean verify -pl bitsail-dist -am -U -DskipUT=true -DskipITCase=false
mvn clean verify -pl bitsail-dist -am -U -DskipUT=false -DskipITCase=true

# This workflow contains a single job called "integration-tests"
# integration-tests:
# name: Integration Test
# # The type of runner that the job will run on
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ ubuntu-latest ]
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# - run: git config --global core.longpaths true
# - uses: actions/checkout@v3
# - name: Set up JDK 8
# uses: actions/setup-java@v3
# with:
# java-version: '8'
# distribution: 'adopt'
# architecture: x64
#
# - name: Maven Verify Integration Test
# run:
# mvn clean verify -pl bitsail-dist -am -U -DskipUT=true -DskipITCase=false
2 changes: 1 addition & 1 deletion website/en/documents/start/env_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ English | [简体中文](/zh/documents/start/env_setup.md)

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

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

Expand Down
2 changes: 1 addition & 1 deletion website/zh/documents/start/env_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

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

Expand Down

0 comments on commit 45bd81c

Please sign in to comment.