Skip to content

Commit ecbd0ab

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

File tree

1 file changed

+77
-21
lines changed

1 file changed

+77
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 77 additions & 21 deletions
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,72 @@ 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
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+
steps:
597+
- uses: actions/checkout@v4
598+
599+
- name: Set up JDK ${{ env.JAVA_VERSION }} (${{ env.JAVA_VENDOR }})
600+
uses: actions/setup-java@v4
601+
with:
602+
java-version: ${{ env.JAVA_VERSION }}
603+
distribution: ${{ env.JAVA_VENDOR }}
604+
605+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}) to run integration test
606+
uses: actions/setup-java@v4
607+
if: ${{ env.SET_UP_INT_TEST_RUNTIME_NON_ORACLE_JDK == 'true'}}
608+
with:
609+
java-version: ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}
610+
distribution: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}
611+
612+
- name: Login to Oracle container registry
613+
uses: docker/login-action@v3
614+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
615+
with:
616+
registry: container-registry.oracle.com
617+
username: ${{ secrets.OCR_USERNAME }}
618+
password: ${{ secrets.OCR_TOKEN }}
619+
620+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (oracle) to run the integration test
621+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
622+
run: |
623+
container_id=$(docker create "container-registry.oracle.com/java/jdk:${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}")
624+
docker cp -L "$container_id:/usr/java/default" /usr/lib/jvm/oracle-jdk && docker rm "$container_id"
625+
626+
- name: Setup Gradle
627+
uses: gradle/actions/setup-gradle@v4
628+
629+
- name: Execute Gradle 'integrationTestJdbc' task
630+
run: ./gradlew integrationTestJdbc -Dscalardb.jdbc.url=jdbc:postgresql://localhost:5432/ -Dscalardb.jdbc.username=postgres -Dscalardb.jdbc.password=postgres
631+
632+
- name: Upload Gradle test reports
633+
if: always()
634+
uses: actions/upload-artifact@v4
635+
with:
636+
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
637+
path: core/build/reports/tests/integrationTestJdbc
638+
639+
integration-test-for-jdbc-postgresql-15:
640+
name: PostgreSQL 15 integration test
641+
runs-on: ubuntu-latest
642+
643+
services:
644+
postgres:
645+
image: postgres:15-alpine
590646
env:
591647
POSTGRES_USER: postgres
592648
POSTGRES_PASSWORD: postgres
@@ -633,16 +689,16 @@ jobs:
633689
if: always()
634690
uses: actions/upload-artifact@v4
635691
with:
636-
name: postgresql_13_integration_test_reports
692+
name: postgresql_15_integration_test_reports
637693
path: core/build/reports/tests/integrationTestJdbc
638694

639-
integration-test-for-jdbc-postgresql-14:
640-
name: PostgreSQL 14 integration test
695+
integration-test-for-jdbc-postgresql-16:
696+
name: PostgreSQL 16 integration test
641697
runs-on: ubuntu-latest
642698

643699
services:
644700
postgres:
645-
image: postgres:14-alpine
701+
image: postgres:16-alpine
646702
env:
647703
POSTGRES_USER: postgres
648704
POSTGRES_PASSWORD: postgres
@@ -689,16 +745,16 @@ jobs:
689745
if: always()
690746
uses: actions/upload-artifact@v4
691747
with:
692-
name: postgresql_14_integration_test_reports
748+
name: postgresql_16_integration_test_reports
693749
path: core/build/reports/tests/integrationTestJdbc
694750

695-
integration-test-for-jdbc-postgresql-15:
696-
name: PostgreSQL 15 integration test
751+
integration-test-for-jdbc-postgresql-17:
752+
name: PostgreSQL 17 integration test
697753
runs-on: ubuntu-latest
698754

699755
services:
700756
postgres:
701-
image: postgres:15-alpine
757+
image: postgres:17-alpine
702758
env:
703759
POSTGRES_USER: postgres
704760
POSTGRES_PASSWORD: postgres
@@ -745,7 +801,7 @@ jobs:
745801
if: always()
746802
uses: actions/upload-artifact@v4
747803
with:
748-
name: postgresql_15_integration_test_reports
804+
name: postgresql_17_integration_test_reports
749805
path: core/build/reports/tests/integrationTestJdbc
750806

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

0 commit comments

Comments
 (0)