From 4611808d45afc9c8980d6963c2e347f0e02c26b7 Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:56:06 +0900 Subject: [PATCH] test latest clickhouse by default, but include Plausible-specific version in the matrix --- .github/workflows/test.yml | 13 ++++++++++--- test/ch/connection_test.exs | 5 +++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06c3646..d784cfb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,17 +16,24 @@ jobs: matrix: elixir: ["1.14", "1.15", "1.16"] otp: ["25", "26"] - clickhouse: ["23.3.7.5", "latest"] + clickhouse: ["latest"] timezone: ["UTC"] include: - elixir: "1.16" otp: "26" - clickhouse: "23.3.7.5" + clickhouse: "latest" timezone: "Europe/Berlin" + # Plausible + # - https://github.com/plausible/analytics/blob/master/.tool-versions + # - https://github.com/plausible/analytics/blob/master/.github/workflows/elixir.yml + - elixir: "1.16.0" + otp: "26.2.1" + clickhouse: "23.3.7.5" + timezone: "UTC" services: clickhouse: - image: clickhouse/clickhouse-server:${{ matrix.clickhouse }}-alpine + image: clickhouse/clickhouse-server:${{ matrix.clickhouse }} ports: - 8123:8123 env: diff --git a/test/ch/connection_test.exs b/test/ch/connection_test.exs index c045756..55c998a 100644 --- a/test/ch/connection_test.exs +++ b/test/ch/connection_test.exs @@ -1282,8 +1282,9 @@ defmodule Ch.ConnectionTest do assert {:error, %Ch.Error{code: 81} = error} = Ch.query(conn, "select 1 + 1", _params = [], database: "no-db") - assert Exception.message(error) =~ - "Code: 81. DB::Exception: Database `no-db` doesn't exist. (UNKNOWN_DATABASE)" + assert Exception.message(error) =~ "Code: 81." + assert Exception.message(error) =~ "`no-db`" + assert Exception.message(error) =~ "(UNKNOWN_DATABASE)" end test "can provide custom database", %{conn: conn} do