Skip to content

Commit 01d6b52

Browse files
authored
Fix Elixir 1.20 deprecation and refresh CI matrix (#48)
* chore: replace deprecated xref exclude with elixirc_options * ci: update runner to ubuntu-24.04 and refresh test matrix - ubuntu-20.04 runner image was removed from GitHub Actions in April 2025 - Add Elixir 1.19 (latest stable) and move lint target to 1.19 + OTP 28 - Drop Elixir 1.12, 1.13, 1.14 (no longer in security support upstream) - Drop OTP < 24.3 since they are not provided on ubuntu-22.04/24.04 * chore: bump minimum Elixir version to 1.15 Align the supported Elixir version with what the CI matrix actually tests. Elixir < 1.15 is no longer in security support upstream and is not exercised by CI.
1 parent d675329 commit 01d6b52

2 files changed

Lines changed: 10 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ on: [push, pull_request]
44
jobs:
55
build:
66
name: Build and test
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-24.04
88
env:
99
MIX_ENV: test
1010
# see https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
1111
strategy:
1212
fail-fast: false
1313
matrix:
1414
include:
15+
- elixir: 1.19.x
16+
otp: 28.x
17+
lint: true
18+
- elixir: 1.19.x
19+
otp: 26.x
1520
- elixir: 1.18.x
1621
otp: 27.x
17-
lint: true
22+
- elixir: 1.18.x
23+
otp: 25.x
1824
- elixir: 1.17.x
1925
otp: 27.x
2026
- elixir: 1.17.x
@@ -27,22 +33,6 @@ jobs:
2733
otp: 26.x
2834
- elixir: 1.15.x
2935
otp: 24.x
30-
- elixir: 1.14.x
31-
otp: 25.x
32-
- elixir: 1.14.x
33-
otp: 23.x
34-
- elixir: 1.13.x
35-
otp: 24.x
36-
- elixir: 1.13.x
37-
otp: 22.x
38-
- elixir: 1.12.x
39-
otp: 24.x
40-
- elixir: 1.12.x
41-
otp: 22.x
42-
- elixir: 1.11.x
43-
otp: 23.x
44-
- elixir: 1.11.x
45-
otp: 21.x
4636
steps:
4737
- uses: actions/checkout@v4
4838
- uses: erlef/setup-beam@v1

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ defmodule Params.Mixfile do
88
[
99
app: :params,
1010
version: @version,
11-
elixir: "~> 1.2",
11+
elixir: "~> 1.15",
1212
name: "Params",
1313
deps: deps(),
1414
docs: docs(),
1515
package: package(),
1616
build_embedded: Mix.env() == :prod,
1717
start_permanent: Mix.env() == :prod,
1818
dialyzer: [plt_add_apps: [:ecto]],
19-
xref: [exclude: [Ecto.Changeset]]
19+
elixirc_options: [no_warn_undefined: [Ecto.Changeset]]
2020
]
2121
end
2222

0 commit comments

Comments
 (0)