Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Elixir 1.18 #849

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
4 changes: 4 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ jobs:
# and running the workflow steps.
matrix:
include:
- elixir: "1.18.1"
otp: "27"
- elixir: "1.18.1"
otp: "26"
- elixir: "1.17"
otp: "27"
- elixir: "1.17"
Expand Down
6 changes: 3 additions & 3 deletions apps/common/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ defmodule Common.MixProject do
{:lexical_shared, path: "../../projects/lexical_shared"},
{:lexical_test, path: "../../projects/lexical_test", only: :test},
{:snowflake, "~> 1.0"},
{:sourceror, "~> 1.4"},
{:stream_data, "~> 0.6", only: [:test], runtime: false},
{:patch, "~> 0.12", only: [:test], optional: true, runtime: false}
{:sourceror, "~> 1.7"},
{:stream_data, "~> 1.1", only: [:test], runtime: false},
{:patch, "~> 0.15", only: [:test], optional: true, runtime: false}
]
end
end
6 changes: 2 additions & 4 deletions apps/common/test/lexical/math_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ defmodule Lexical.MathTest do
end

property "clamp works with all integers" do
check all(
ints <- uniq_list_of(integer(-100_000..100_000), min_length: 5, max_length: 20),
[low, mid, high] = low_mid_high(ints)
) do
check all(ints <- uniq_list_of(integer(-100_000..100_000), min_length: 5, max_length: 20)) do
[low, mid, high] = low_mid_high(ints)
assert Math.clamp(mid, low, high) == mid
assert Math.clamp(low, mid, high) == mid
assert Math.clamp(high, low, mid) == mid
Expand Down
2 changes: 1 addition & 1 deletion apps/protocol/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule Lexical.Protocol.MixProject do
{:lexical_test, path: "../../projects/lexical_test", only: :test},
{:common, in_umbrella: true},
{:jason, "~> 1.4", optional: true},
{:patch, "~> 0.12", only: [:test]},
{:patch, "~> 0.15", only: [:test]},
{:proto, in_umbrella: true}
]
end
Expand Down
Loading