Skip to content

Commit 09d15b9

Browse files
committed
Update MySQL and PostgreSQL versions tested on the CI (#2302)
1 parent 86ec387 commit 09d15b9

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
@@ -515,8 +515,8 @@ jobs:
515515
name: mysql_8.0_integration_test_reports_${{ matrix.mode.label }}
516516
path: core/build/reports/tests/integrationTestJdbc
517517

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

522522
strategy:
@@ -528,9 +528,9 @@ jobs:
528528
group_commit_enabled: true
529529

530530
steps:
531-
- name: Run MySQL 8.1
531+
- name: Run MySQL 8.4
532532
run: |
533-
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.1 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
533+
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.4 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
534534
535535
- uses: actions/checkout@v4
536536

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

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

581581
services:
582582
postgres:
583-
image: postgres:12-alpine
583+
image: postgres:13-alpine
584584
env:
585585
POSTGRES_USER: postgres
586586
POSTGRES_PASSWORD: postgres
@@ -635,16 +635,16 @@ jobs:
635635
if: always()
636636
uses: actions/upload-artifact@v4
637637
with:
638-
name: postgresql_12_integration_test_reports_${{ matrix.mode.label }}
638+
name: postgresql_13_integration_test_reports_${{ matrix.mode.label }}
639639
path: core/build/reports/tests/integrationTestJdbc
640640

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

645645
services:
646646
postgres:
647-
image: postgres:13-alpine
647+
image: postgres:14-alpine
648648
env:
649649
POSTGRES_USER: postgres
650650
POSTGRES_PASSWORD: postgres
@@ -699,16 +699,16 @@ jobs:
699699
if: always()
700700
uses: actions/upload-artifact@v4
701701
with:
702-
name: postgresql_13_integration_test_reports_${{ matrix.mode.label }}
702+
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
703703
path: core/build/reports/tests/integrationTestJdbc
704704

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

709709
services:
710710
postgres:
711-
image: postgres:14-alpine
711+
image: postgres:15-alpine
712712
env:
713713
POSTGRES_USER: postgres
714714
POSTGRES_PASSWORD: postgres
@@ -763,16 +763,16 @@ jobs:
763763
if: always()
764764
uses: actions/upload-artifact@v4
765765
with:
766-
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
766+
name: postgresql_15_integration_test_reports_${{ matrix.mode.label }}
767767
path: core/build/reports/tests/integrationTestJdbc
768768

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

773773
services:
774774
postgres:
775-
image: postgres:15-alpine
775+
image: postgres:16-alpine
776776
env:
777777
POSTGRES_USER: postgres
778778
POSTGRES_PASSWORD: postgres
@@ -827,7 +827,71 @@ jobs:
827827
if: always()
828828
uses: actions/upload-artifact@v4
829829
with:
830-
name: postgresql_15_integration_test_reports_${{ matrix.mode.label }}
830+
name: postgresql_16_integration_test_reports_${{ matrix.mode.label }}
831+
path: core/build/reports/tests/integrationTestJdbc
832+
833+
integration-test-for-jdbc-postgresql-17:
834+
name: PostgreSQL 17 integration test (${{ matrix.mode.label }})
835+
runs-on: ubuntu-latest
836+
837+
services:
838+
postgres:
839+
image: postgres:17-alpine
840+
env:
841+
POSTGRES_USER: postgres
842+
POSTGRES_PASSWORD: postgres
843+
ports:
844+
- 5432:5432
845+
846+
strategy:
847+
matrix:
848+
mode:
849+
- label: default
850+
group_commit_enabled: false
851+
- label: with_group_commit
852+
group_commit_enabled: true
853+
854+
steps:
855+
- uses: actions/checkout@v4
856+
857+
- name: Set up JDK ${{ env.JAVA_VERSION }} (${{ env.JAVA_VENDOR }})
858+
uses: actions/setup-java@v4
859+
with:
860+
java-version: ${{ env.JAVA_VERSION }}
861+
distribution: ${{ env.JAVA_VENDOR }}
862+
863+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}) to run integration test
864+
uses: actions/setup-java@v4
865+
if: ${{ env.SET_UP_INT_TEST_RUNTIME_NON_ORACLE_JDK == 'true'}}
866+
with:
867+
java-version: ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}
868+
distribution: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR }}
869+
870+
- name: Login to Oracle container registry
871+
uses: docker/login-action@v3
872+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
873+
with:
874+
registry: container-registry.oracle.com
875+
username: ${{ secrets.OCR_USERNAME }}
876+
password: ${{ secrets.OCR_TOKEN }}
877+
878+
- name: Set up JDK ${{ env.INT_TEST_JAVA_RUNTIME_VERSION }} (oracle) to run the integration test
879+
if: ${{ env.INT_TEST_JAVA_RUNTIME_VENDOR == 'oracle' }}
880+
run: |
881+
container_id=$(docker create "container-registry.oracle.com/java/jdk:${{ env.INT_TEST_JAVA_RUNTIME_VERSION }}")
882+
docker cp -L "$container_id:/usr/java/default" /usr/lib/jvm/oracle-jdk && docker rm "$container_id"
883+
884+
- name: Setup Gradle
885+
uses: gradle/actions/setup-gradle@v4
886+
887+
- name: Execute Gradle 'integrationTestJdbc' task
888+
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 || '' }}
889+
890+
- name: Upload Gradle test reports
891+
if: always()
892+
uses: actions/upload-artifact@v4
893+
with:
894+
name: postgresql_17_integration_test_reports_${{ matrix.mode.label }}
831895
path: core/build/reports/tests/integrationTestJdbc
832896

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

0 commit comments

Comments
 (0)