Skip to content

Commit d480937

Browse files
committed
Update MySQL and PostgreSQL versions tested on the CI (#2302)
1 parent 67d0a8b commit d480937

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

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

526526
strategy:
@@ -532,9 +532,9 @@ jobs:
532532
group_commit_enabled: true
533533

534534
steps:
535-
- name: Run MySQL 8.1
535+
- name: Run MySQL 8.4
536536
run: |
537-
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.1 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
537+
docker run -e MYSQL_ROOT_PASSWORD=mysql -p 3306:3306 -d mysql:8.4 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
538538
539539
- uses: actions/checkout@v4
540540

@@ -575,16 +575,16 @@ jobs:
575575
if: always()
576576
uses: actions/upload-artifact@v4
577577
with:
578-
name: mysql_8.1_integration_test_reports_${{ matrix.mode.label }}
578+
name: mysql_8.4_integration_test_reports_${{ matrix.mode.label }}
579579
path: core/build/reports/tests/integrationTestJdbc
580580

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

585585
services:
586586
postgres:
587-
image: postgres:12-alpine
587+
image: postgres:13-alpine
588588
env:
589589
POSTGRES_USER: postgres
590590
POSTGRES_PASSWORD: postgres
@@ -639,16 +639,16 @@ jobs:
639639
if: always()
640640
uses: actions/upload-artifact@v4
641641
with:
642-
name: postgresql_12_integration_test_reports_${{ matrix.mode.label }}
642+
name: postgresql_13_integration_test_reports_${{ matrix.mode.label }}
643643
path: core/build/reports/tests/integrationTestJdbc
644644

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

649649
services:
650650
postgres:
651-
image: postgres:13-alpine
651+
image: postgres:14-alpine
652652
env:
653653
POSTGRES_USER: postgres
654654
POSTGRES_PASSWORD: postgres
@@ -703,16 +703,16 @@ jobs:
703703
if: always()
704704
uses: actions/upload-artifact@v4
705705
with:
706-
name: postgresql_13_integration_test_reports_${{ matrix.mode.label }}
706+
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
707707
path: core/build/reports/tests/integrationTestJdbc
708708

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

713713
services:
714714
postgres:
715-
image: postgres:14-alpine
715+
image: postgres:15-alpine
716716
env:
717717
POSTGRES_USER: postgres
718718
POSTGRES_PASSWORD: postgres
@@ -767,16 +767,16 @@ jobs:
767767
if: always()
768768
uses: actions/upload-artifact@v4
769769
with:
770-
name: postgresql_14_integration_test_reports_${{ matrix.mode.label }}
770+
name: postgresql_15_integration_test_reports_${{ matrix.mode.label }}
771771
path: core/build/reports/tests/integrationTestJdbc
772772

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

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

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

0 commit comments

Comments
 (0)