Skip to content

Commit

Permalink
update - Add compatibility with OTP 26 and 27 (#66)
Browse files Browse the repository at this point in the history
* update- Add compatibility with OTP 26 and 27

* update- Also for Windows
  • Loading branch information
elbrujohalcon authored Oct 30, 2024
1 parent ab627de commit e597343
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
otp: [25]
otp: [25, 26, 27]
rebar: [3.24]
steps:
- uses: actions/checkout@v4
Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
otp: [25]
otp: [25, 26, 27]
rebar: [3.24]
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 10 additions & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
case string:to_integer(
erlang:system_info(otp_release))
of
{N, _} when N >= 26 ->
{value, {dialyzer, DOpts}, Config} = lists:keytake(dialyzer, 1, CONFIG),
{value, {warnings, Warnings}, OtherDOpts} = lists:keytake(warnings, 1, DOpts),
[{dialyzer, [{warnings, [no_unknown | Warnings]} | OtherDOpts]} | Config];
_ ->
CONFIG
end.
3 changes: 1 addition & 2 deletions test/typer_core_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ empty(_) ->

bad_plt(_) ->
ct:comment("With an invalid plt.. we get an error"),
[{abort,
<<"typer: Dialyzer's PLT is missing or is not up-to-date; please (re)create it">>}] =
[{abort, <<"typer: ", _Message/binary>>}] =
run_typer(#{files_r => [abs_test_path("single_file")], plt => "bad.plt"}),
{comment, ""}.

Expand Down

0 comments on commit e597343

Please sign in to comment.