-
Notifications
You must be signed in to change notification settings - Fork 21
45 lines (43 loc) · 1.65 KB
/
ci-mariadb-intergration-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: |
set -o pipefail
./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 \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN \
-Dio.netty.leakDetectionLevel=paranoid \
-Dio.netty.leakDetection.targetRecords=32 \
| tee test.log
set +o pipefail
- name: ensure no leaks
run: ./.github/scripts/ensure_no_leak.sh test.log