Skip to content

Commit

Permalink
Update MySQL and PostgreSQL versions tested on the CI (#2302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Torch3333 authored Oct 31, 2024
1 parent 6b40565 commit f16b810
Showing 1 changed file with 85 additions and 21 deletions.
106 changes: 85 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ jobs:
name: mysql_8.0_integration_test_reports_${{ matrix.mode.label }}
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-mysql-8-1:
name: MySQL 8.1 integration test (${{ matrix.mode.label }})
integration-test-for-jdbc-mysql-8-4:
name: MySQL 8.4 integration test (${{ matrix.mode.label }})
runs-on: ubuntu-latest

strategy:
Expand All @@ -528,9 +528,9 @@ jobs:
group_commit_enabled: true

steps:
- name: Run MySQL 8.1
- name: Run MySQL 8.4
run: |
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.1 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.4 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
- uses: actions/checkout@v4

Expand Down Expand Up @@ -571,16 +571,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: mysql_8.1_integration_test_reports_${{ matrix.mode.label }}
name: mysql_8.4_integration_test_reports_${{ matrix.mode.label }}
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-12:
name: PostgreSQL 12 integration test (${{ matrix.mode.label }})
integration-test-for-jdbc-postgresql-13:
name: PostgreSQL 13 integration test (${{ matrix.mode.label }})
runs-on: ubuntu-latest

services:
postgres:
image: postgres:12-alpine
image: postgres:13-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -635,16 +635,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_12_integration_test_reports_${{ matrix.mode.label }}
name: postgresql_13_integration_test_reports_${{ matrix.mode.label }}
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-13:
name: PostgreSQL 13 integration test (${{ matrix.mode.label }})
integration-test-for-jdbc-postgresql-14:
name: PostgreSQL 14 integration test (${{ matrix.mode.label }})
runs-on: ubuntu-latest

services:
postgres:
image: postgres:13-alpine
image: postgres:14-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -699,16 +699,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_13_integration_test_reports_${{ matrix.mode.label }}
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-14:
name: PostgreSQL 14 integration test (${{ matrix.mode.label }})
integration-test-for-jdbc-postgresql-15:
name: PostgreSQL 15 integration test (${{ matrix.mode.label }})
runs-on: ubuntu-latest

services:
postgres:
image: postgres:14-alpine
image: postgres:15-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -763,16 +763,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
name: postgresql_15_integration_test_reports_${{ matrix.mode.label }}
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-15:
name: PostgreSQL 15 integration test (${{ matrix.mode.label }})
integration-test-for-jdbc-postgresql-16:
name: PostgreSQL 16 integration test (${{ matrix.mode.label }})
runs-on: ubuntu-latest

services:
postgres:
image: postgres:15-alpine
image: postgres:16-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -827,7 +827,71 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_15_integration_test_reports_${{ matrix.mode.label }}
name: postgresql_16_integration_test_reports_${{ matrix.mode.label }}
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-postgresql-17:
name: PostgreSQL 17 integration test (${{ matrix.mode.label }})
runs-on: ubuntu-latest

services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432

strategy:
matrix:
mode:
- label: default
group_commit_enabled: false
- label: with_group_commit
group_commit_enabled: true

steps:
- uses: actions/checkout@v4

- name: Set up JDK ${{ env.JAVA_VERSION }} (${{ env.JAVA_VENDOR }})
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_VENDOR }}

- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}) to run integration test
uses: actions/setup-java@v4
if: ${{ env.SET_UP_INT_TEST_RUNTIME_NON_ORACLE_JDK == 'true'}}
with:
java-version: ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}
distribution: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}

- name: Login to Oracle container registry
uses: docker/login-action@v3
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
with:
registry: container-registry.oracle.com
username: ${{ secrets.OCR_USERNAME }}
password: ${{ secrets.OCR_TOKEN }}

- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (oracle) to run the integration test
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
run: |
container_id=$(docker create "container-registry.oracle.com/java/jdk:${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}")
docker cp -L "$container_id:/usr/java/default" /usr/lib/jvm/oracle-jdk && docker rm "$container_id"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Execute Gradle 'integrationTestJdbc' task
run: ./gradlew integrationTestJdbc -Dscalardb.jdbc.url=jdbc:postgresql://localhost:5432/ -Dscalardb.jdbc.username=postgres -Dscalardb.jdbc.password=postgres ${{ matrix.mode.group_commit_enabled && env.INT_TEST_GRADLE_OPTIONS_FOR_GROUP_COMMIT || '' }}

- name: Upload Gradle test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: postgresql_17_integration_test_reports_${{ matrix.mode.label }}
path: core/build/reports/tests/integrationTestJdbc

integration-test-for-jdbc-oracle-19:
Expand Down

0 comments on commit f16b810

Please sign in to comment.