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

Add OTP 26 to CI #14

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 34 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,27 @@ jobs:
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: [22.x, 23.x, 24.x, 25.x]
elixir: [1.11.x, 1.12.x, 1.13.x]
otp: [22.x, 23.x, 24.x, 25.x, 26.x]
elixir: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x]
exclude:
- otp: 22.x
elixir: 1.14.x
- otp: 22.x
elixir: 1.15.x
- otp: 23.x
elixir: 1.14.x
- otp: 23.x
elixir: 1.15.x
- otp: 25.x
elixir: 1.11.x
- otp: 25.x
elixir: 1.12.x
- otp: 26.x
elixir: 1.11.x
- otp: 26.x
elixir: 1.12.x
- otp: 26.x
elixir: 1.13.x
needs: check_format
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -90,13 +104,27 @@ jobs:
if: ${{ github.ref == 'refs/heads/master' }}
strategy:
matrix:
otp: [22.x, 23.x, 24.x, 25.x]
elixir: [1.11.x, 1.12.x, 1.13.x]
otp: [22.x, 23.x, 24.x, 25.x, 26.x]
elixir: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x]
exclude:
- otp: 22.x
elixir: 1.14.x
- otp: 22.x
elixir: 1.15.x
- otp: 23.x
elixir: 1.14.x
- otp: 23.x
elixir: 1.15.x
- otp: 25.x
elixir: 1.11.x
- otp: 25.x
elixir: 1.12.x
- otp: 26.x
elixir: 1.11.x
- otp: 26.x
elixir: 1.12.x
- otp: 26.x
elixir: 1.13.x
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
Expand All @@ -121,8 +149,8 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
otp: [24.x, 25.x]
elixir: [1.13.x]
otp: [24.x, 25.x, 26.x]
elixir: [1.15.x]
env:
MIX_ENV: test
steps:
Expand Down
5 changes: 3 additions & 2 deletions lib/grpc/server/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
@type sup_flags() :: %{
strategy: Supervisor.strategy(),
intensity: non_neg_integer(),
period: pos_integer()
period: pos_integer(),
auto_shutdown: :never | :any_significant | :all_significant
}

@default_adapter GRPC.Server.Adapters.Cowboy
Expand All @@ -44,7 +45,7 @@
Either `:endpoint` or `:servers` must be present, but not both.
"""
@spec init(tuple()) :: no_return
@spec init(keyword()) :: {:ok, {sup_flags(), [Supervisor.child_spec()]}} | :ignore
@spec init(keyword()) :: {:ok, {sup_flags(), [Supervisor.child_spec()]}}
def init(opts)

def init(opts) when is_tuple(opts) do
Expand Down Expand Up @@ -107,7 +108,7 @@
{endpoint, endpoint.__meta__(:servers)}
rescue
FunctionClauseError ->
Logger.warn(

Check warning on line 111 in lib/grpc/server/supervisor.ex

View workflow job for this annotation

GitHub Actions / Dialyzer (24.x, 1.15.x)

Logger.warn/1 is deprecated. Use Logger.warning/2 instead

Check warning on line 111 in lib/grpc/server/supervisor.ex

View workflow job for this annotation

GitHub Actions / Dialyzer (25.x, 1.15.x)

Logger.warn/1 is deprecated. Use Logger.warning/2 instead

Check warning on line 111 in lib/grpc/server/supervisor.ex

View workflow job for this annotation

GitHub Actions / Dialyzer (26.x, 1.15.x)

Logger.warn/1 is deprecated. Use Logger.warning/2 instead

Check warning on line 111 in lib/grpc/server/supervisor.ex

View workflow job for this annotation

GitHub Actions / OTP 25.x / Elixir 1.15.x

Logger.warn/1 is deprecated. Use Logger.warning/2 instead

Check warning on line 111 in lib/grpc/server/supervisor.ex

View workflow job for this annotation

GitHub Actions / OTP 24.x / Elixir 1.15.x

Logger.warn/1 is deprecated. Use Logger.warning/2 instead

Check warning on line 111 in lib/grpc/server/supervisor.ex

View workflow job for this annotation

GitHub Actions / OTP 26.x / Elixir 1.15.x

Logger.warn/1 is deprecated. Use Logger.warning/2 instead
"deprecated: servers as argument of GRPC.Server.Supervisor, please use GRPC.Endpoint"
)

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule GRPC.Mixfile do
{:cowlib, "~> 2.11"},
{:protobuf, "~> 0.11", only: [:dev, :test]},
{:ex_doc, "~> 0.28.0", only: :dev},
{:dialyxir, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4.0", only: [:dev, :test], runtime: false},
{:ex_parameterized, "~> 1.3.7", only: :test}
]
end
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm", "7af5c7e09fe1d40f76c8e4f9dd2be7cebd83909f31fee7cd0e9eadc567da8353"},
"cowboy": {:hex, :cowboy, "2.9.0", "865dd8b6607e14cf03282e10e934023a1bd8be6f6bacf921a7e2a96d800cd452", [:make, :rebar3], [{:cowlib, "2.11.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "2c729f934b4e1aa149aff882f57c6372c15399a20d54f65c8d67bef583021bde"},
"cowlib": {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"},
"dialyxir": {:hex, :dialyxir, "1.1.0", "c5aab0d6e71e5522e77beff7ba9e08f8e02bad90dfbeffae60eaf0cb47e29488", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "07ea8e49c45f15264ebe6d5b93799d4dd56a44036cf42d0ad9c960bc266c0b9a"},
"dialyxir": {:hex, :dialyxir, "1.4.2", "764a6e8e7a354f0ba95d58418178d486065ead1f69ad89782817c296d0d746a5", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "516603d8067b2fd585319e4b13d3674ad4f314a5902ba8130cd97dc902ce6bbd"},
"earmark_parser": {:hex, :earmark_parser, "1.4.26", "f4291134583f373c7d8755566122908eb9662df4c4b63caa66a0eabe06569b0a", [:mix], [], "hexpm", "48d460899f8a0c52c5470676611c01f64f3337bad0b26ddab43648428d94aabc"},
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
"ex_doc": {:hex, :ex_doc, "0.28.4", "001a0ea6beac2f810f1abc3dbf4b123e9593eaa5f00dd13ded024eae7c523298", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "bf85d003dd34911d89c8ddb8bda1a958af3471a274a4c2150a9c01c78ac3f8ed"},
Expand Down
Loading