Skip to content

Commit f9bca8c

Browse files
authored
Update Elixir/Erlang in CI (#1226)
1 parent 9871e86 commit f9bca8c

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,25 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- pair:
20-
elixir: "1.10.4"
21-
otp: "21.3"
19+
# Earliest-supported Elixir/Erlang pair.
20+
- elixir: "1.10.4"
21+
otp: "21.3"
2222
PLUG_CRYPTO_2_0: "false"
23-
- pair:
24-
elixir: "1.16"
25-
otp: "26.2"
26-
lint: lint
23+
24+
# Latest-supported Elixir/Erlang pair.
25+
- elixir: "1.17"
26+
otp: "27.0"
27+
lint: lint
2728
PLUG_CRYPTO_2_0: "true"
29+
2830
steps:
2931
- uses: actions/checkout@v4
3032

3133
- name: Install Erlang and Elixir
3234
uses: erlef/setup-beam@v1
3335
with:
34-
otp-version: ${{ matrix.pair.otp }}
35-
elixir-version: ${{ matrix.pair.elixir }}
36+
otp-version: ${{ matrix.otp }}
37+
elixir-version: ${{ matrix.elixir }}
3638

3739
- name: Install dependencies
3840
run: mix deps.get

test/plug/conn/query_test.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ defmodule Plug.Conn.QueryTest do
181181
end
182182

183183
defp decode_pair(pairs) do
184-
Enum.reduce(Enum.reverse(pairs), %{}, &Plug.Conn.Query.decode_pair(&1, &2))
184+
pairs
185+
|> Enum.reduce(Plug.Conn.Query.decode_init(), &Plug.Conn.Query.decode_each/2)
186+
|> Plug.Conn.Query.decode_done()
185187
end
186188
end
187189
end

0 commit comments

Comments
 (0)