From 072ddd37ce441e1474525a5fb368096e5f03962a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20G=C3=B6tze?= Date: Sun, 5 Mar 2023 15:06:17 +0100 Subject: [PATCH 1/3] Fix depcrecation warning: import Config instead of use Mix.Config --- config/config.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.exs b/config/config.exs index 6081058..4289341 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config if Mix.env() == :dev do config :mix_test_watch, From cdc5517e1a378b144f3827df33be7669e280d5a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20G=C3=B6tze?= Date: Sun, 5 Mar 2023 16:58:07 +0100 Subject: [PATCH 2/3] Update CI to use Elixir 1.13.4/OTP 25.2 --- .github/workflows/elixir.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index da64a48..c54a438 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -10,15 +10,23 @@ jobs: build: runs-on: ubuntu-latest + name: Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} + strategy: + # Specify the OTP and Elixir versions to use when building + # and running the workflow steps. + matrix: + otp: ['25.2'] # Define the OTP version [required] + elixir: ['1.13.4'] # Define the elixir version [required] + steps: - uses: actions/checkout@v2 - - name: Setup elixir - uses: actions/setup-elixir@v1 + + # Step: Setup Elixir + Erlang image as the base. + - name: Set up Elixir + uses: erlef/setup-beam@v1 with: - elixir-version: 1.9.4 # Define the elixir version [required] - otp-version: 22.2 # Define the OTP version [required] - - name: Check formatting - run: mix format --check-formatted + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} - name: Cache Dependencies id: mix-cache From 8eba0b2cdef9650057a24098a0bdb22793c2bb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20G=C3=B6tze?= Date: Sun, 5 Mar 2023 17:24:00 +0100 Subject: [PATCH 3/3] Fix depcrecation warning: call local vars without parenthesis warning: the @initial_state() notation (with parenthesis) is deprecated, please use @initial_state (without parenthesis) instead --- test/session_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/session_test.exs b/test/session_test.exs index eb7fdc3..f8e6a04 100644 --- a/test/session_test.exs +++ b/test/session_test.exs @@ -226,7 +226,7 @@ defmodule SessionTest do %{ "event" => "ping" }, - @initial_state() + @initial_state ) assert_receive {:to_user, %{event: "pong"}}