Skip to content

Commit

Permalink
refactor: fixes warning in elixir v1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jul 28, 2023
1 parent 61a6291 commit b78ad76
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/lemon_ex/webhooks/event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b78ad76

Please sign in to comment.