Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BitSail] Add java 11 unit test to cicd #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 32 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,50 @@ 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.3' ]
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'
java-version: '11'
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