This is an automated email from the ASF dual-hosted git repository.
zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new bcc6b169ab6 Refactor : move JDK 9 and 11 to nightly CI (#24763)
bcc6b169ab6 is described below
commit bcc6b169ab64a5cae801a8967aa8f886485cb7f3
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Wed Mar 22 21:43:15 2023 +0800
Refactor : move JDK 9 and 11 to nightly CI (#24763)
* Refactor : move JDK 9 and 11 to nightly CI
* Refactor : rename the action job
---
.github/workflows/ci.yml | 16 ++++++++--------
.../nightly-build-example/init-mysql-container.sh | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ae426b01026..32bb219cf74 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -56,18 +56,15 @@ env:
jobs:
ci:
- name: CI - on JDK ${{ matrix.java-version }}
+ name: CI - Compile by JDK 11 and Run on JDK 8
runs-on: ubuntu-latest
timeout-minutes: 60
- strategy:
- matrix:
- java-version: [ 11, 19 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
- java-version: ${{ matrix.java-version }}
+ java-version: 11
- uses: actions/cache@v3
with:
path: ~/.m2/repository
@@ -76,9 +73,12 @@ jobs:
${{ env.REPOSITORY_NAME }}-maven-third-party-
- name: Build prod with Maven
run: ./mvnw -T1C -B -ntp clean install
- - name: Build examples with Maven
- run: ./mvnw -T1C -B -f examples/pom.xml clean package -DskipTests
- - name: Run tests with JDK ${{ matrix.java-version }}
+ - name: Setup JDK 8 for Test
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'temurin'
+ java-version: 8
+ - name: Run tests with JDK 8
run: ./mvnw -T1C -B -ntp -fae test
test-coverage:
diff --git
a/.github/workflows/resources/scripts/nightly-build-example/init-mysql-container.sh
b/.github/workflows/resources/scripts/nightly-build-example/init-mysql-container.sh
index a85c9037c11..29764bcec70 100644
---
a/.github/workflows/resources/scripts/nightly-build-example/init-mysql-container.sh
+++
b/.github/workflows/resources/scripts/nightly-build-example/init-mysql-container.sh
@@ -21,4 +21,4 @@ mysql -uroot -h127.0.0.1 -p123456 -e 'USE demo_ds_2;CREATE
TABLE IF NOT EXISTS t
mysql -uroot -h127.0.0.1 -p123456 -e 'USE demo_ds_1;CREATE TABLE IF NOT EXISTS
t_order_item(order_item_id BIGINT NOT NULL AUTO_INCREMENT, order_id BIGINT NOT
NULL, user_id INT NOT NULL, phone VARCHAR(50), status VARCHAR(50), PRIMARY KEY
(order_item_id));'
mysql -uroot -h127.0.0.1 -p123456 -e 'USE demo_ds_2;CREATE TABLE IF NOT EXISTS
t_order_item(order_item_id BIGINT NOT NULL AUTO_INCREMENT, order_id BIGINT NOT
NULL, user_id INT NOT NULL, phone VARCHAR(50), status VARCHAR(50), PRIMARY KEY
(order_item_id));'
mysql -uroot -h127.0.0.1 -p123456 -e 'USE demo_ds_1;CREATE TABLE IF NOT EXISTS
t_address (address_id BIGINT NOT NULL, address_name VARCHAR(100) NOT NULL,
PRIMARY KEY (address_id));'
-mysql -uroot -h127.0.0.1 -p123456 -e 'USE demo_ds_2;CREATE TABLE IF NOT EXISTS
t_address (address_id BIGINT NOT NULL, address_name VARCHAR(100) NOT NULL,
PRIMARY KEY (address_id));'
\ No newline at end of file
+mysql -uroot -h127.0.0.1 -p123456 -e 'USE demo_ds_2;CREATE TABLE IF NOT EXISTS
t_address (address_id BIGINT NOT NULL, address_name VARCHAR(100) NOT NULL,
PRIMARY KEY (address_id));'