diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07f89022..92c74f8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,23 +16,25 @@ jobs: fail-fast: false matrix: include: - - pair: - elixir: "1.10.4" - otp: "21.3" + # Earliest-supported Elixir/Erlang pair. + - elixir: "1.10.4" + otp: "21.3" PLUG_CRYPTO_2_0: "false" - - pair: - elixir: "1.16" - otp: "26.2" - lint: lint + + # Latest-supported Elixir/Erlang pair. + - elixir: "1.17" + otp: "27.0" + lint: lint PLUG_CRYPTO_2_0: "true" + steps: - uses: actions/checkout@v4 - name: Install Erlang and Elixir uses: erlef/setup-beam@v1 with: - otp-version: ${{ matrix.pair.otp }} - elixir-version: ${{ matrix.pair.elixir }} + otp-version: ${{ matrix.otp }} + elixir-version: ${{ matrix.elixir }} - name: Install dependencies run: mix deps.get diff --git a/test/plug/conn/query_test.exs b/test/plug/conn/query_test.exs index 35d903ee..a264c963 100644 --- a/test/plug/conn/query_test.exs +++ b/test/plug/conn/query_test.exs @@ -181,7 +181,9 @@ defmodule Plug.Conn.QueryTest do end defp decode_pair(pairs) do - Enum.reduce(Enum.reverse(pairs), %{}, &Plug.Conn.Query.decode_pair(&1, &2)) + pairs + |> Enum.reduce(Plug.Conn.Query.decode_init(), &Plug.Conn.Query.decode_each/2) + |> Plug.Conn.Query.decode_done() end end end