Skip to content

Commit

Permalink
Merge pull request #165 from tomas-abrahamsson/erlang-26
Browse files Browse the repository at this point in the history
Shift workflow Erlang version from 23..25 to 24..26
  • Loading branch information
lrascao committed Sep 23, 2023
2 parents 52e49fc + c79da29 commit 1674e7a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
fail-fast: false
matrix:
combo:
- os: 'ubuntu-20.04'
otp-version: '23'
rebar3-version: '3.16'
- os: 'ubuntu-latest'
otp-version: '24'
rebar3-version: '3.16'
- os: 'ubuntu-latest'
otp-version: '25'
rebar3-version: '3.16'
- os: 'ubuntu-latest'
otp-version: '26'
rebar3-version: '3.22.1'

steps:
- uses: actions/checkout@v2
Expand Down
24 changes: 0 additions & 24 deletions rebar.config

This file was deleted.

35 changes: 35 additions & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
NoUnknown =
case list_to_integer(erlang:system_info(otp_release)) of
N when N >= 26 ->
%% Don't warn about unknown functions and types (of rebar3)
[no_unknown];
_N ->
[]
end.
[
{minimum_otp_vsn, "19.3"},

{erl_opts, [
debug_info,
warn_export_all,
warn_export_vars,
warn_missing_spec,
warn_obsolete_guard,
warn_shadow_vars,
warn_unused_import,
warnings_as_errors
]},

{deps, [
{'gpb', "~> 4.0"}
]},

{dialyzer, [
{warnings,
NoUnknown ++ [
unmatched_returns,
error_handling,
underspecs
]}
]}
].

0 comments on commit 1674e7a

Please sign in to comment.