Skip to content

Commit c2dfb59

Browse files
Backport to branch(3.10) : Update MySQL and PostgreSQL versions tested on the CI (#2314)
Co-authored-by: Vincent <[email protected]>
1 parent fbda56a commit c2dfb59

File tree

1 file changed

+76
-20
lines changed

1 file changed

+76
-20
lines changed

.github/workflows/ci.yaml

+76-20
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,13 @@ jobs:
481481
name: mysql_8.0_integration_test_reports
482482
path: core/build/reports/tests/integrationTestJdbc
483483

484-
integration-test-for-jdbc-mysql-8-1:
485-
name: MySQL 8.1 integration test
484+
integration-test-for-jdbc-mysql-8-4:
485+
name: MySQL 8.4 integration test
486486
runs-on: ubuntu-latest
487487

488488
services:
489489
mysql:
490-
image: mysql:8.1
490+
image: mysql:8.4
491491
env:
492492
MYSQL_ROOT_PASSWORD: mysql
493493
ports:
@@ -533,16 +533,16 @@ jobs:
533533
if: always()
534534
uses: actions/upload-artifact@v4
535535
with:
536-
name: mysql_8.1_integration_test_reports
536+
name: mysql_8.4_integration_test_reports
537537
path: core/build/reports/tests/integrationTestJdbc
538538

539-
integration-test-for-jdbc-postgresql-12:
540-
name: PostgreSQL 12 integration test
539+
integration-test-for-jdbc-postgresql-13:
540+
name: PostgreSQL 13 integration test
541541
runs-on: ubuntu-latest
542542

543543
services:
544544
postgres:
545-
image: postgres:12-alpine
545+
image: postgres:13-alpine
546546
env:
547547
POSTGRES_USER: postgres
548548
POSTGRES_PASSWORD: postgres
@@ -589,16 +589,16 @@ jobs:
589589
if: always()
590590
uses: actions/upload-artifact@v4
591591
with:
592-
name: postgresql_12_integration_test_reports
592+
name: postgresql_13_integration_test_reports
593593
path: core/build/reports/tests/integrationTestJdbc
594594

595-
integration-test-for-jdbc-postgresql-13:
596-
name: PostgreSQL 13 integration test
595+
integration-test-for-jdbc-postgresql-14:
596+
name: PostgreSQL 14 integration test
597597
runs-on: ubuntu-latest
598598

599599
services:
600600
postgres:
601-
image: postgres:13-alpine
601+
image: postgres:14-alpine
602602
env:
603603
POSTGRES_USER: postgres
604604
POSTGRES_PASSWORD: postgres
@@ -645,16 +645,16 @@ jobs:
645645
if: always()
646646
uses: actions/upload-artifact@v4
647647
with:
648-
name: postgresql_13_integration_test_reports
648+
name: postgresql_14_integration_test_reports
649649
path: core/build/reports/tests/integrationTestJdbc
650650

651-
integration-test-for-jdbc-postgresql-14:
652-
name: PostgreSQL 14 integration test
651+
integration-test-for-jdbc-postgresql-15:
652+
name: PostgreSQL 15 integration test
653653
runs-on: ubuntu-latest
654654

655655
services:
656656
postgres:
657-
image: postgres:14-alpine
657+
image: postgres:15-alpine
658658
env:
659659
POSTGRES_USER: postgres
660660
POSTGRES_PASSWORD: postgres
@@ -701,16 +701,16 @@ jobs:
701701
if: always()
702702
uses: actions/upload-artifact@v4
703703
with:
704-
name: postgresql_14_integration_test_reports
704+
name: postgresql_15_integration_test_reports
705705
path: core/build/reports/tests/integrationTestJdbc
706706

707-
integration-test-for-jdbc-postgresql-15:
708-
name: PostgreSQL 15 integration test
707+
integration-test-for-jdbc-postgresql-16:
708+
name: PostgreSQL 16 integration test
709709
runs-on: ubuntu-latest
710710

711711
services:
712712
postgres:
713-
image: postgres:15-alpine
713+
image: postgres:16-alpine
714714
env:
715715
POSTGRES_USER: postgres
716716
POSTGRES_PASSWORD: postgres
@@ -757,7 +757,63 @@ jobs:
757757
if: always()
758758
uses: actions/upload-artifact@v4
759759
with:
760-
name: postgresql_15_integration_test_reports
760+
name: postgresql_16_integration_test_reports
761+
path: core/build/reports/tests/integrationTestJdbc
762+
763+
integration-test-for-jdbc-postgresql-17:
764+
name: PostgreSQL 17 integration test
765+
runs-on: ubuntu-latest
766+
767+
services:
768+
postgres:
769+
image: postgres:17-alpine
770+
env:
771+
POSTGRES_USER: postgres
772+
POSTGRES_PASSWORD: postgres
773+
ports:
774+
- 5432:5432
775+
776+
steps:
777+
- uses: actions/checkout@v4
778+
779+
- name: Set up JDK ${{ env.JAVA_VERSION }} (${{ env.JAVA_VENDOR }})
780+
uses: actions/setup-java@v4
781+
with:
782+
java-version: ${{ env.JAVA_VERSION }}
783+
distribution: ${{ env.JAVA_VENDOR }}
784+
785+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}) to run integration test
786+
uses: actions/setup-java@v4
787+
if: ${{ env.SET_UP_INT_TEST_RUNTIME_NON_ORACLE_JDK == 'true'}}
788+
with:
789+
java-version: ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}
790+
distribution: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}
791+
792+
- name: Login to Oracle container registry
793+
uses: docker/login-action@v3
794+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
795+
with:
796+
registry: container-registry.oracle.com
797+
username: ${{ secrets.OCR_USERNAME }}
798+
password: ${{ secrets.OCR_TOKEN }}
799+
800+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (oracle) to run the integration test
801+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
802+
run: |
803+
container_id=$(docker create "container-registry.oracle.com/java/jdk:${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}")
804+
docker cp -L "$container_id:/usr/java/default" /usr/lib/jvm/oracle-jdk && docker rm "$container_id"
805+
806+
- name: Setup Gradle
807+
uses: gradle/actions/setup-gradle@v4
808+
809+
- name: Execute Gradle 'integrationTestJdbc' task
810+
run: ./gradlew integrationTestJdbc -Dscalardb.jdbc.url=jdbc:postgresql://localhost:5432/ -Dscalardb.jdbc.username=postgres -Dscalardb.jdbc.password=postgres
811+
812+
- name: Upload Gradle test reports
813+
if: always()
814+
uses: actions/upload-artifact@v4
815+
with:
816+
name: postgresql_17_integration_test_reports
761817
path: core/build/reports/tests/integrationTestJdbc
762818

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

0 commit comments

Comments
 (0)