From b78ad76cf4458482a22c44098ac49bbbddbd698a Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Fri, 28 Jul 2023 15:15:46 -0300 Subject: [PATCH] refactor: fixes warning in elixir v1.15 --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++ lib/lemon_ex/webhooks/event.ex | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1279b63 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI +on: + pull_request: + push: + branches: + - main + +jobs: + main: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - elixir_version: "1.15.4" + otp_version: "26.0.2" + lint: true + - elixir_version: "1.14.5" + otp_version: "25.3.2.2" + env: + MIX_ENV: test + steps: + - uses: actions/checkout@v3 + - uses: erlef/setup-beam@v1 + with: + elixir-version: ${{ matrix.elixir_version }} + otp-version: ${{ matrix.otp_version }} + - run: mix deps.get + - run: mix format --check-formatted + if: ${{ matrix.lint }} + - run: mix deps.unlock --check-unused + if: ${{ matrix.lint }} + - run: mix deps.compile + - run: mix compile --warnings-as-errors + if: ${{ matrix.lint }} + - run: mix test diff --git a/lib/lemon_ex/webhooks/event.ex b/lib/lemon_ex/webhooks/event.ex index 1d14e74..b795425 100644 --- a/lib/lemon_ex/webhooks/event.ex +++ b/lib/lemon_ex/webhooks/event.ex @@ -34,7 +34,7 @@ defmodule LemonEx.Webhooks.Event do defp parse_data("license-keys", data), do: LicenseKey.from_json(data) defp parse_data(type, data) do - Logger.warn("LemonEx: Unknown webhook event type #{type}") + Logger.warning("LemonEx: Unknown webhook event type #{type}") data end end