Skip to content

Commit a13e9d3

Browse files
authored
Merge pull request #189 from tompave/elixir_1_18_updates
Elixir 1.18 compatibility updates
2 parents b2412be + b08a191 commit a13e9d3

File tree

7 files changed

+67
-50
lines changed

7 files changed

+67
-50
lines changed

.github/workflows/quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
branches: [master, v2]
88

99
env:
10-
elixir_version: '1.17'
11-
otp_version: '27.0'
10+
elixir_version: '1.18'
11+
otp_version: '27.2'
1212

1313
jobs:
1414
credo:

.github/workflows/test.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,25 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
elixir:
18+
- '1.18'
1819
- '1.17'
1920
- '1.16'
20-
- '1.15'
2121
otp:
22-
- '27.0'
22+
- '27.2'
23+
- '27.1'
2324
- '26.2'
2425
- '25.3'
25-
- '24.3'
2626
exclude:
27-
- elixir: '1.17'
28-
otp: '24.3'
27+
# Elixir 1.18 + OTP 25 is technically supported:
28+
# https://hexdocs.pm/elixir/1.18.1/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
29+
# but not on GHA:
30+
# https://github.com/tompave/fun_with_flags/actions/runs/12515433561/job/34912997388?pr=189#step:5:20
31+
- elixir: '1.18'
32+
otp: '25.3'
2933
- elixir: '1.16'
30-
otp: '27.0'
31-
- elixir: '1.15'
32-
otp: '27.0'
34+
otp: '27.2'
35+
- elixir: '1.16'
36+
otp: '27.1'
3337

3438
services:
3539
postgres:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v1.13.0
4+
5+
* Add support for Elixir 1.18. Drop support for Elixir 1.15. Elixir >= 1.16 is now required. Dropping support for older versions of Elixir simply means that this package is no longer tested with them in CI, and that compatibility issues are not considered bugs.
6+
* Drop support for Erlang/OTP 24, and Erlang/OTP >= 25 is now required. Dropping support for older versions of Erlang/OTP simply means that this package is not tested with them in CI, and that no compatibility issues are considered bugs.
7+
38
## v1.12.0
49

510
* Add support for Elixir 1.17 and 1.16. Drop support for Elixir 1.13 and 1.14. Elixir >= 1.15 is now required. Dropping support for older versions of Elixir simply means that this package is no longer tested with them in CI, and that compatibility issues are not considered bugs.

mix.exs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule FunWithFlags.Mixfile do
88
[
99
app: :fun_with_flags,
1010
version: @version,
11-
elixir: "~> 1.15",
11+
elixir: "~> 1.16",
1212
elixirc_paths: elixirc_paths(Mix.env),
1313
build_embedded: Mix.env == :prod,
1414
start_permanent: Mix.env == :prod,
@@ -152,7 +152,7 @@ defmodule FunWithFlags.Mixfile do
152152
#
153153
defp run_tests__redis_pers__redis_pubsub(arg) do
154154
Mix.shell.cmd(
155-
"mix test --color --force --exclude phoenix_pubsub --exclude ecto_persistence #{arg}",
155+
"mix test --color --force --exclude phoenix_pubsub --exclude ecto_persistence #{Enum.join(arg, " ")}",
156156
env: [
157157
{"CACHE_ENABLED", "true"},
158158
]
@@ -164,7 +164,7 @@ defmodule FunWithFlags.Mixfile do
164164
#
165165
defp run_integration_tests__redis_pers__redis_pubsub__no_cache(arg) do
166166
Mix.shell.cmd(
167-
"mix test --color --force --only integration #{arg}",
167+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
168168
env: [
169169
{"CACHE_ENABLED", "false"},
170170
]
@@ -175,7 +175,7 @@ defmodule FunWithFlags.Mixfile do
175175
#
176176
defp run_tests__redis_pers__phoenix_pubsub(arg) do
177177
Mix.shell.cmd(
178-
"mix test --color --force --exclude redis_pubsub --exclude ecto_persistence #{arg}",
178+
"mix test --color --force --exclude redis_pubsub --exclude ecto_persistence #{Enum.join(arg, " ")}",
179179
env: [
180180
{"CACHE_ENABLED", "true"},
181181
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -188,7 +188,7 @@ defmodule FunWithFlags.Mixfile do
188188
#
189189
defp run_integration_tests__redis_pers__phoenix_pubsub__no_cache(arg) do
190190
Mix.shell.cmd(
191-
"mix test --color --force --only integration #{arg}",
191+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
192192
env: [
193193
{"CACHE_ENABLED", "false"},
194194
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -200,7 +200,7 @@ defmodule FunWithFlags.Mixfile do
200200
#
201201
defp run_tests__ecto_pers_postgres__phoenix_pubsub(arg) do
202202
Mix.shell.cmd(
203-
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{arg}",
203+
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{Enum.join(arg, " ")}",
204204
env: [
205205
{"CACHE_ENABLED", "true"},
206206
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -214,7 +214,7 @@ defmodule FunWithFlags.Mixfile do
214214
#
215215
defp run_tests__ecto_pers_mysql__phoenix_pubsub(arg) do
216216
Mix.shell.cmd(
217-
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{arg}",
217+
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{Enum.join(arg, " ")}",
218218
env: [
219219
{"CACHE_ENABLED", "true"},
220220
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -228,7 +228,7 @@ defmodule FunWithFlags.Mixfile do
228228
#
229229
defp run_tests__ecto_pers_sqlite__phoenix_pubsub(arg) do
230230
Mix.shell.cmd(
231-
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{arg}",
231+
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{Enum.join(arg, " ")}",
232232
env: [
233233
{"CACHE_ENABLED", "true"},
234234
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -243,7 +243,7 @@ defmodule FunWithFlags.Mixfile do
243243
#
244244
defp run_integration_tests__ecto_pers_postgres__phoenix_pubsub__no_cache(arg) do
245245
Mix.shell.cmd(
246-
"mix test --color --force --only integration #{arg}",
246+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
247247
env: [
248248
{"CACHE_ENABLED", "false"},
249249
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -258,7 +258,7 @@ defmodule FunWithFlags.Mixfile do
258258
#
259259
defp run_integration_tests__ecto_pers_mysql__phoenix_pubsub__no_cache(arg) do
260260
Mix.shell.cmd(
261-
"mix test --color --force --only integration #{arg}",
261+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
262262
env: [
263263
{"CACHE_ENABLED", "false"},
264264
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -273,7 +273,7 @@ defmodule FunWithFlags.Mixfile do
273273
#
274274
defp run_integration_tests__ecto_pers_sqlite__phoenix_pubsub__no_cache(arg) do
275275
Mix.shell.cmd(
276-
"mix test --color --force --only integration #{arg}",
276+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
277277
env: [
278278
{"CACHE_ENABLED", "false"},
279279
{"PUBSUB_BROKER", "phoenix_pubsub"},

0 commit comments

Comments
 (0)