Skip to content

Commit 99b9756

Browse files
committed
Update MySQL and PostgreSQL versions tested on the CI (#2302)
# Conflicts: # .github/workflows/ci.yaml
1 parent 84125a8 commit 99b9756

File tree

1 file changed

+85
-21
lines changed

1 file changed

+85
-21
lines changed

.github/workflows/ci.yaml

+85-21
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,14 @@ jobs:
473473
name: mysql_8.0_integration_test_reports
474474
path: core/build/reports/tests/integrationTestJdbc
475475

476-
integration-test-for-jdbc-mysql-8-1:
477-
name: MySQL 8.1 integration test
476+
integration-test-for-jdbc-mysql-8-4:
477+
name: MySQL 8.4 integration test
478478
runs-on: ubuntu-latest
479479

480480
steps:
481-
- name: Run MySQL 8.1
481+
- name: Run MySQL 8.4
482482
run: |
483-
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.1 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
483+
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.4 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
484484
485485
- uses: actions/checkout@v4
486486

@@ -521,16 +521,16 @@ jobs:
521521
if: always()
522522
uses: actions/upload-artifact@v4
523523
with:
524-
name: mysql_8.1_integration_test_reports
524+
name: mysql_8.4_integration_test_reports
525525
path: core/build/reports/tests/integrationTestJdbc
526526

527-
integration-test-for-jdbc-postgresql-12:
528-
name: PostgreSQL 12 integration test
527+
integration-test-for-jdbc-postgresql-13:
528+
name: PostgreSQL 13 integration test
529529
runs-on: ubuntu-latest
530530

531531
services:
532532
postgres:
533-
image: postgres:12-alpine
533+
image: postgres:13-alpine
534534
env:
535535
POSTGRES_USER: postgres
536536
POSTGRES_PASSWORD: postgres
@@ -577,16 +577,80 @@ jobs:
577577
if: always()
578578
uses: actions/upload-artifact@v4
579579
with:
580-
name: postgresql_12_integration_test_reports
580+
name: postgresql_13_integration_test_reports
581581
path: core/build/reports/tests/integrationTestJdbc
582582

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

587587
services:
588588
postgres:
589-
image: postgres:13-alpine
589+
image: postgres:14-alpine
590+
env:
591+
POSTGRES_USER: postgres
592+
POSTGRES_PASSWORD: postgres
593+
ports:
594+
- 5432:5432
595+
596+
strategy:
597+
matrix:
598+
mode:
599+
- label: default
600+
group_commit_enabled: false
601+
- label: with_group_commit
602+
group_commit_enabled: true
603+
604+
steps:
605+
- uses: actions/checkout@v4
606+
607+
- name: Set up JDK ${{ env.JAVA_VERSION }} (${{ env.JAVA_VENDOR }})
608+
uses: actions/setup-java@v4
609+
with:
610+
java-version: ${{ env.JAVA_VERSION }}
611+
distribution: ${{ env.JAVA_VENDOR }}
612+
613+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}) to run integration test
614+
uses: actions/setup-java@v4
615+
if: ${{ env.SET_UP_INT_TEST_RUNTIME_NON_ORACLE_JDK == 'true'}}
616+
with:
617+
java-version: ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}
618+
distribution: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}
619+
620+
- name: Login to Oracle container registry
621+
uses: docker/login-action@v3
622+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
623+
with:
624+
registry: container-registry.oracle.com
625+
username: ${{ secrets.OCR_USERNAME }}
626+
password: ${{ secrets.OCR_TOKEN }}
627+
628+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (oracle) to run the integration test
629+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
630+
run: |
631+
container_id=$(docker create "container-registry.oracle.com/java/jdk:${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}")
632+
docker cp -L "$container_id:/usr/java/default" /usr/lib/jvm/oracle-jdk && docker rm "$container_id"
633+
634+
- name: Setup Gradle
635+
uses: gradle/actions/setup-gradle@v4
636+
637+
- name: Execute Gradle 'integrationTestJdbc' task
638+
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 || '' }}
639+
640+
- name: Upload Gradle test reports
641+
if: always()
642+
uses: actions/upload-artifact@v4
643+
with:
644+
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
645+
path: core/build/reports/tests/integrationTestJdbc
646+
647+
integration-test-for-jdbc-postgresql-15:
648+
name: PostgreSQL 15 integration test
649+
runs-on: ubuntu-latest
650+
651+
services:
652+
postgres:
653+
image: postgres:15-alpine
590654
env:
591655
POSTGRES_USER: postgres
592656
POSTGRES_PASSWORD: postgres
@@ -633,16 +697,16 @@ jobs:
633697
if: always()
634698
uses: actions/upload-artifact@v4
635699
with:
636-
name: postgresql_13_integration_test_reports
700+
name: postgresql_15_integration_test_reports
637701
path: core/build/reports/tests/integrationTestJdbc
638702

639-
integration-test-for-jdbc-postgresql-14:
640-
name: PostgreSQL 14 integration test
703+
integration-test-for-jdbc-postgresql-16:
704+
name: PostgreSQL 16 integration test
641705
runs-on: ubuntu-latest
642706

643707
services:
644708
postgres:
645-
image: postgres:14-alpine
709+
image: postgres:16-alpine
646710
env:
647711
POSTGRES_USER: postgres
648712
POSTGRES_PASSWORD: postgres
@@ -689,16 +753,16 @@ jobs:
689753
if: always()
690754
uses: actions/upload-artifact@v4
691755
with:
692-
name: postgresql_14_integration_test_reports
756+
name: postgresql_16_integration_test_reports
693757
path: core/build/reports/tests/integrationTestJdbc
694758

695-
integration-test-for-jdbc-postgresql-15:
696-
name: PostgreSQL 15 integration test
759+
integration-test-for-jdbc-postgresql-17:
760+
name: PostgreSQL 17 integration test
697761
runs-on: ubuntu-latest
698762

699763
services:
700764
postgres:
701-
image: postgres:15-alpine
765+
image: postgres:17-alpine
702766
env:
703767
POSTGRES_USER: postgres
704768
POSTGRES_PASSWORD: postgres
@@ -745,7 +809,7 @@ jobs:
745809
if: always()
746810
uses: actions/upload-artifact@v4
747811
with:
748-
name: postgresql_15_integration_test_reports
812+
name: postgresql_17_integration_test_reports
749813
path: core/build/reports/tests/integrationTestJdbc
750814

751815
integration-test-for-jdbc-oracle-19:

0 commit comments

Comments
 (0)