diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 41b8acd..2c51e31 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -11,9 +11,10 @@ jobs: strategy: matrix: - elixir: ["1.16"] - otp: ["26"] - clickhouse: ["latest"] + # TODO + elixir: [v1.17.0-rc.0] + otp: [27] + clickhouse: [latest] services: clickhouse: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb3f798..084f96d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,22 +14,27 @@ jobs: strategy: matrix: - elixir: ["1.14", "1.15", "1.16"] - otp: ["25", "26"] - clickhouse: ["latest"] - timezone: ["UTC"] + elixir: [1.14, 1.15, 1.16] + otp: [25, 26] + clickhouse: [latest] + timezone: [UTC] include: - - elixir: "1.16" - otp: "26" - clickhouse: "latest" - timezone: "Europe/Berlin" + - elixir: 1.16 + otp: 26 + clickhouse: latest + timezone: Europe/Berlin + # TODO + - elixir: v1.17.0-rc.0 + otp: 27 + clickhouse: latest + timezone: UTC # 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: "24.3.3.102" - timezone: "UTC" + - elixir: 1.16.0 + otp: 26.2.1 + clickhouse: 24.3.3.102 + timezone: UTC services: clickhouse: @@ -67,12 +72,13 @@ jobs: - run: mix test --include slow format: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - uses: erlef/setup-beam@v1 with: - elixir-version: "1" - otp-version: "26" + # TODO + elixir-version: v1.17.0-rc.0 + otp-version: 27 - run: elixir -v - run: mix format --check-formatted diff --git a/test/ch/query_test.exs b/test/ch/query_test.exs index c8eec26..6ffdd4c 100644 --- a/test/ch/query_test.exs +++ b/test/ch/query_test.exs @@ -113,7 +113,7 @@ defmodule Ch.QueryTest do test "decoded binaries copy behaviour", %{conn: conn} do text = "hello world" assert [[bin]] = Ch.query!(conn, "SELECT {$0:String}", [text]).rows - assert :binary.referenced_byte_size(bin) == byte_size(text) + assert :binary.referenced_byte_size(bin) == :binary.referenced_byte_size("hello world") # For OTP 20+ refc binaries up to 64 bytes might be copied during a GC text = String.duplicate("hello world", 6)