diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9243ef82..4f04ef73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: fail-fast: false matrix: # https://www.cockroachlabs.com/docs/releases/release-support-policy - crdb: [v23.2, v24.1, v24.3] + crdb: [v23.2, v24.1, v24.3, v25.1] ruby: ["3.4"] name: Test (crdb=${{ matrix.crdb }} ruby=${{ matrix.ruby }}) steps: @@ -53,6 +53,8 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true + - name: Show Rails version + run: bundle info rails - name: Install and Start Cockroachdb run: | # Download CockroachDB diff --git a/test/config.yml b/test/config.yml index 3b3de0be..f554f02c 100644 --- a/test/config.yml +++ b/test/config.yml @@ -1,22 +1,20 @@ default_connection: cockroachdb connections: cockroachdb: - arunit: + arunit: &arunit min_messages: warning host: 127.0.0.1 port: 26257 user: root disable_cockroachdb_telemetry: true + # `autocommit_before_ddl` changed to default true in CockroachDB v25.1. + # This does not work with active record's test suite. + # + # This options keyword is referenced here in libpq: + # https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-OPTIONS + options: "-c autocommit_before_ddl=false" arunit_without_prepared_statements: - min_messages: warning + <<: *arunit prepared_statements: false - host: 127.0.0.1 - port: 26257 - user: root - disable_cockroachdb_telemetry: true arunit2: - min_messages: warning - host: 127.0.0.1 - port: 26257 - user: root - disable_cockroachdb_telemetry: true + <<: *arunit