Skip to content

Commit

Permalink
Update Elixir/Erlang in CI (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Jun 12, 2024
1 parent 9871e86 commit f9bca8c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion test/plug/conn/query_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f9bca8c

Please sign in to comment.