Apply TestContainer #253
Workflow file for this run
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
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.0.38, 10.1.48, 10.2.15, 10.2.16, 10.3.7, 10.3.8, 10.5.1, 10.6.17, 10.11.7] | |
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: Integration test with MariaDB ${{ matrix.mysql-version }} | |
run: | | |
set -o pipefail | |
./mvnw -B verify -Dmaven.javadoc.skip=true \ | |
-Dmaven.surefire.skip=true \ | |
-Dtest.db.type=mariadb \ | |
-Dtest.db.version=${{ matrix.mariadb-version }} \ | |
-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 |