From 2285643adfb452e6984b98d47ab4a1e18f96dafb Mon Sep 17 00:00:00 2001 From: Dan Ekstrom Date: Thu, 28 Dec 2023 15:49:04 +0100 Subject: [PATCH 1/2] The worker/2 function from the Supervisor.Spec module is deprecated --- lib/elixir_koans.ex | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/elixir_koans.ex b/lib/elixir_koans.ex index dcf857f7..9ca0fa41 100644 --- a/lib/elixir_koans.ex +++ b/lib/elixir_koans.ex @@ -3,13 +3,11 @@ defmodule ElixirKoans do use Application def start(_type, _args) do - import Supervisor.Spec - children = [ - worker(Display, []), - worker(Tracker, []), - worker(Runner, []), - worker(Watcher, []) + {Display, []}, + {Tracker, []}, + {Runner, []}, + {Watcher, []} ] opts = [strategy: :one_for_one, name: ElixirKoans.Supervisor] From e970fb5b877683bf2b7ed8a3ebbdde637d152c40 Mon Sep 17 00:00:00 2001 From: Dan Ekstrom Date: Thu, 4 Jan 2024 22:43:08 +0100 Subject: [PATCH 2/2] Update elixir-version in github worksflows to v1.16 --- .github/workflows/elixir.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index d8bc4d02..fbb77a09 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f with: - elixir-version: '1.12.3' # Define the elixir version [required] + elixir-version: '1.16' # Define the elixir version [required] otp-version: '24.1' # Define the OTP version [required] - name: Restore dependencies cache uses: actions/cache@v2