diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54d22c7..1ae4dbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,12 +9,12 @@ on: jobs: test: name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}}) - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: include: - - otp: '25' + - otp: "29.0.1" elixir: main lint: true env: @@ -30,7 +30,7 @@ jobs: with: otp-version: ${{ matrix.otp }} elixir-version: ${{ matrix.elixir }} - version-type: 'strict' + version-type: "strict" - name: Install dependencies run: mix do deps.get --only test, deps.compile diff --git a/lib/logger_backends/watcher.ex b/lib/logger_backends/watcher.ex index 4f7c863..901d228 100644 --- a/lib/logger_backends/watcher.ex +++ b/lib/logger_backends/watcher.ex @@ -1,7 +1,6 @@ defmodule LoggerBackends.Watcher do @moduledoc false - require Logger use GenServer def start_link(tuple) do diff --git a/mix.exs b/mix.exs index 0d5f132..7cafe85 100644 --- a/mix.exs +++ b/mix.exs @@ -12,7 +12,6 @@ defmodule LoggerBackends.MixProject do start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), - preferred_cli_env: [docs: :docs, "hex.publish": :docs], # Hex description: "Logger backends functionality for Elixir v1.15+", @@ -31,6 +30,10 @@ defmodule LoggerBackends.MixProject do ] end + def cli do + [preferred_envs: [docs: :docs, "hex.publish": :docs]] + end + defp docs do [ main: "LoggerBackends",