-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add MariaDB workflows - Correct `BitSetCodec` in client-preparing for MariaDB, it cannot select `BIT` by HEX string - Correct JSON test cases for MariaDB, it responds `TEXT` for `JSON` type - Add `TEXT` integration test to avoid potential bugs due to differences between MySQL and MariaDB - Correct README about `BIT` and `TEXT`
- Loading branch information
1 parent
550f8c3
commit 871339d
Showing
12 changed files
with
184 additions
and
64 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Integration Tests for MariaDB | ||
|
||
on: | ||
pull_request: | ||
branches: [ "trunk", "0.9.x" ] | ||
|
||
jobs: | ||
mariadb-integration-tests-pr: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
mariadb-version: [ 10.6, 10.11 ] | ||
name: Integration test with MariaDB ${{ matrix.mariadb-version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Temurin 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 8 | ||
cache: maven | ||
- name: Shutdown the Default MySQL | ||
run: sudo service mysql stop | ||
- name: Set up MariaDB ${{ matrix.mariadb-version }} | ||
env: | ||
MYSQL_DATABASE: r2dbc | ||
MYSQL_ROOT_PASSWORD: r2dbc-password!@ | ||
MARIADB_VERSION: ${{ matrix.mariadb-version }} | ||
run: docker-compose -f ${{ github.workspace }}/containers/mariadb-compose.yml up -d | ||
- name: Integration test with MySQL ${{ matrix.mysql-version }} | ||
run: | | ||
./mvnw -B verify -Dmaven.javadoc.skip=true \ | ||
-Dmaven.surefire.skip=true \ | ||
-Dtest.mysql.password=r2dbc-password!@ \ | ||
-Dtest.mysql.version=${{ matrix.mariadb-version }} \ | ||
-Dtest.db.type=mariadb \ | ||
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3" | ||
|
||
services: | ||
mariadb: | ||
image: mariadb:${MARIADB_VERSION} | ||
container_name: mariadb_${MARIADB_VERSION} | ||
environment: | ||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} | ||
MYSQL_DATABASE: ${MYSQL_DATABASE} | ||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | ||
ports: | ||
- "3306:3306" |
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
Oops, something went wrong.