-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Contribution Guidelines and unit tests (#559)
- Loading branch information
1 parent
6ba32b2
commit 08e2f0a
Showing
17 changed files
with
57 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
# FORK | ||
|
||
Git Mirror 位于 https://github.com/baomidou/dynamic-datasource 。 | ||
|
||
# RUN TEST | ||
|
||
# PR | ||
此项目在 OpenJDK 17 下完成构建,输出产物指向 OpenJDK 7。 | ||
|
||
当项目导入 IntelliJ IDEA 或 VSCode 时,IDE 对项目的语言级别应当设置为 7。 | ||
对于单独的 `com.baomidou:dynamic-datasource-spring-boot3-starter` 子模块,IDE 的语言级别应当设置为 17。 | ||
|
||
提交 PR 前,应在 OpenJDK 17 下执行 `./mvnw -T1C -B clean test` 以验证更改是否未破坏单元测试。若有需要请补充或更改单元测试。 | ||
|
||
# PR | ||
|
||
PR 应提交到位于 Github 的 Git Mirror,即 https://github.com/baomidou/dynamic-datasource 。 | ||
位于 Github Actions 的 CI 将在 OpenJDK 8 和 OpenJDK 17 下对 PR 对应分支执行对应的单元测试。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
dynamic-datasource-spring-boot-starter/src/test/resources/db/add-remove-datasource.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
CREATE TABLE IF NOT EXISTS TEACHER | ||
CREATE TABLE IF NOT EXISTS teacher | ||
( | ||
id BIGINT(20) NOT NULL AUTO_INCREMENT, | ||
name VARCHAR(30) NULL DEFAULT NULL, | ||
age INT(11) NULL DEFAULT NULL, | ||
PRIMARY KEY (id) | ||
`id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
`name` VARCHAR(30) NULL DEFAULT NULL, | ||
age INT NULL DEFAULT NULL | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS STUDENT | ||
CREATE TABLE IF NOT EXISTS student | ||
( | ||
id BIGINT(20) NOT NULL AUTO_INCREMENT, | ||
name VARCHAR(30) NULL DEFAULT NULL, | ||
age INT(11) NULL DEFAULT NULL, | ||
PRIMARY KEY (id) | ||
`id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
`name` VARCHAR(30) NULL DEFAULT NULL, | ||
age INT NULL DEFAULT NULL | ||
); |
5 changes: 2 additions & 3 deletions
5
dynamic-datasource-spring-boot-starter/src/test/resources/db/spring-expression-language.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
CREATE TABLE IF NOT EXISTS t_user | ||
( | ||
id BIGINT(20) NOT NULL AUTO_INCREMENT, | ||
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
name VARCHAR(30) NULL DEFAULT NULL, | ||
age INT(11) NULL DEFAULT NULL, | ||
PRIMARY KEY (id) | ||
age INT NULL DEFAULT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
dynamic-datasource-spring-boot3-starter/src/test/resources/db/add-remove-datasource.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
CREATE TABLE IF NOT EXISTS TEACHER | ||
CREATE TABLE IF NOT EXISTS teacher | ||
( | ||
id BIGINT(20) NOT NULL AUTO_INCREMENT, | ||
name VARCHAR(30) NULL DEFAULT NULL, | ||
age INT(11) NULL DEFAULT NULL, | ||
PRIMARY KEY (id) | ||
`id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
`name` VARCHAR(30) NULL DEFAULT NULL, | ||
age INT NULL DEFAULT NULL | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS STUDENT | ||
CREATE TABLE IF NOT EXISTS student | ||
( | ||
id BIGINT(20) NOT NULL AUTO_INCREMENT, | ||
name VARCHAR(30) NULL DEFAULT NULL, | ||
age INT(11) NULL DEFAULT NULL, | ||
PRIMARY KEY (id) | ||
`id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
`name` VARCHAR(30) NULL DEFAULT NULL, | ||
age INT NULL DEFAULT NULL | ||
); |
5 changes: 2 additions & 3 deletions
5
dynamic-datasource-spring-boot3-starter/src/test/resources/db/spring-expression-language.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
CREATE TABLE IF NOT EXISTS t_user | ||
( | ||
id BIGINT(20) NOT NULL AUTO_INCREMENT, | ||
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
name VARCHAR(30) NULL DEFAULT NULL, | ||
age INT(11) NULL DEFAULT NULL, | ||
PRIMARY KEY (id) | ||
age INT NULL DEFAULT NULL | ||
); |