Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub CI #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add GitHub CI #12

wants to merge 1 commit into from

Conversation

kianmeng
Copy link
Contributor

List of changes:

  • code format to Elixir 1.17
  • remove unused deps
  • resolve issue with Erlang OTP 27

List of changes:
- code format to Elixir 1.17
- remove unused deps
- resolve issue with Erlang OTP 27
@kianmeng
Copy link
Contributor Author

@thbar This PR should resolve #11

@@ -34,15 +34,16 @@ defmodule Sizeable do
filesize(parsed, options)
end

def filesize(0.0, options) do
def filesize(+0.0, options) do
spacer = Keyword.get(options, :spacer, " ")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: pattern matching on 0.0 is equivalent to matching only on +0.0 from Erlang/OTP 27+. Instead you must match on +0.0 or -0.0
└─ lib/sizeable.ex: Sizeable.filesize/2

]
end

defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:inch_ex, only: :docs}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're not using Inch, remove this.

matrix:
include:
- pair:
elixir: 1.11.x
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still retain the support of Elixir 1.11.x, not sure if we want to bump to 1.13, which is the minimal version that still have security support.,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant