Skip to content

Commit afc4b07

Browse files
Test with Elixir 1.12 and OTP 24.0 (#739)
1 parent 7f84a77 commit afc4b07

File tree

6 files changed

+22
-25
lines changed

6 files changed

+22
-25
lines changed

.dialyzer_ignore.exs

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
[
2-
{":0:unknown_function Function RPG.Edible.Atom.__impl__/1 does not exist."},
3-
{":0:unknown_function Function RPG.Edible.BitString.__impl__/1 does not exist."},
4-
{":0:unknown_function Function RPG.Edible.Float.__impl__/1 does not exist."},
5-
{":0:unknown_function Function RPG.Edible.Function.__impl__/1 does not exist."},
6-
{":0:unknown_function Function RPG.Edible.Integer.__impl__/1 does not exist."},
7-
{":0:unknown_function Function RPG.Edible.List.__impl__/1 does not exist."},
8-
{":0:unknown_function Function RPG.Edible.Map.__impl__/1 does not exist."},
9-
{":0:unknown_function Function RPG.Edible.PID.__impl__/1 does not exist."},
10-
{":0:unknown_function Function RPG.Edible.Port.__impl__/1 does not exist."},
11-
{":0:unknown_function Function RPG.Edible.Reference.__impl__/1 does not exist."},
12-
{":0:unknown_function Function RPG.Edible.Tuple.__impl__/1 does not exist."}
13-
2+
~r|Function RPG\.Edible\.Atom\.__impl__/1 does not exist\.|,
3+
~r|Function RPG\.Edible\.BitString\.__impl__/1 does not exist\.|,
4+
~r|Function RPG\.Edible\.Float\.__impl__/1 does not exist\.|,
5+
~r|Function RPG\.Edible\.Function\.__impl__/1 does not exist\.|,
6+
~r|Function RPG\.Edible\.Integer\.__impl__/1 does not exist\.|,
7+
~r|Function RPG\.Edible\.List\.__impl__/1 does not exist\.|,
8+
~r|Function RPG\.Edible\.Map\.__impl__/1 does not exist\.|,
9+
~r|Function RPG\.Edible\.PID\.__impl__/1 does not exist\.|,
10+
~r|Function RPG\.Edible\.Port\.__impl__/1 does not exist\.|,
11+
~r|Function RPG\.Edible\.Reference\.__impl__/1 does not exist\.|,
12+
~r|Function RPG\.Edible\.Tuple\.__impl__/1 does not exist\.|
1413
# # {short_description}
1514
# {":0:unknown_function Function :erl_types.t_is_opaque/1/1 does not exist."},
1615
# # {short_description, warning_type}

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
elixir: [1.11]
20-
otp: [23.2]
19+
elixir: [1.12]
20+
otp: [24.0]
2121

2222
steps:
2323
- name: Checkout code
@@ -77,6 +77,8 @@ jobs:
7777
otp: '22.2'
7878
- elixir: '1.11.0'
7979
otp: '23.2'
80+
- elixir: '1.12.0'
81+
otp: '24.0'
8082

8183
steps:
8284
- uses: actions/[email protected]

.github/workflows/pr.ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
elixir: [1.11]
17-
otp: [23.2]
16+
elixir: [1.12]
17+
otp: [24.0]
1818

1919
steps:
2020
- name: Checkout PR
@@ -74,6 +74,8 @@ jobs:
7474
otp: '22.2'
7575
- elixir: '1.11.0'
7676
otp: '23.2'
77+
- elixir: '1.12.0'
78+
otp: '24.0'
7779

7880
steps:
7981
- uses: actions/[email protected]

exercises/concept/city-office/test/form_test.exs

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ defmodule FormTest do
8686
{:"::", _, [_, type_definition]} = Code.Typespec.type_to_quoted(type)
8787

8888
assert type,
89-
"expected the module#{unquote(module_name)} to have a public type named #{
90-
unquote(type_name)
91-
}"
89+
"expected the module#{unquote(module_name)} to have a public type named #{unquote(type_name)}"
9290

9391
actual_type_definition = Macro.to_string(type_definition)
9492
assert actual_type_definition == unquote(expected_type_definition)

exercises/practice/beer-song/.meta/example.ex

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ defmodule BeerSong do
1212
end
1313

1414
def verse(number) do
15-
"#{number} bottles of beer on the wall, #{number} bottles of beer.\nTake one down and pass it around, #{
16-
number - 1
17-
} bottles of beer on the wall.\n"
15+
"#{number} bottles of beer on the wall, #{number} bottles of beer.\nTake one down and pass it around, #{number - 1} bottles of beer on the wall.\n"
1816
end
1917

2018
def lyrics(range \\ 99..0) do

exercises/practice/twelve-days/.meta/example.ex

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ defmodule TwelveDays do
2626
"""
2727
@spec verse(number :: integer) :: String.t()
2828
def verse(number) do
29-
"On the #{ordinal(number)} day of Christmas my true love gave to me: #{
30-
gifts_for_day(number, [])
31-
}."
29+
"On the #{ordinal(number)} day of Christmas my true love gave to me: #{gifts_for_day(number, [])}."
3230
end
3331

3432
defp gifts_for_day(1, []), do: gift(1)

0 commit comments

Comments
 (0)