-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore: add dialyzer to pipeline #82
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,19 +37,14 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Determine the elixir version | ||
run: echo "ELIXIR_VERSION=$(grep -h elixir .tool-versions | awk '{ print $2 }' | awk -F - '{print $1}')" >> $GITHUB_ENV | ||
|
||
- name: Determine the otp version | ||
run: echo "OTP_VERSION=$(grep -h erlang .tool-versions | awk '{ print $2 }')" >> $GITHUB_ENV | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Elixir and Erlang versions | ||
uses: erlef/[email protected] | ||
uses: erlef/setup-beam@v1 | ||
id: beam | ||
with: | ||
otp-version: ${{ env.OTP_VERSION }} | ||
elixir-version: ${{ env.ELIXIR_VERSION }} | ||
version-file: .tool-versions | ||
version-type: strict | ||
|
||
- name: Restore the deps cache | ||
uses: actions/cache@v1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
elixir 1.12.3-otp-24 | ||
erlang 24.0 | ||
elixir 1.14.5-otp-26 | ||
erlang 26.0 | ||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🥺🥺🥺🥺 please 🥺🥺🥺🥺 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding this to the CI and using it locally is ok but we should also test against earlier Elixir versions as far back as 1.9 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
use Mix.Config | ||
import Config | ||
|
||
import_config "#{Mix.env()}.exs" | ||
config :spear, Spear.Test.ClientFixture, connection_string: "esdb://localhost:2113" | ||
|
||
host = System.get_env("EVENTSTORE_HOST") || "localhost" | ||
|
||
config :spear, :config, | ||
connection_string: "esdb://admin:changeit@#{host}:2113?tls=true", | ||
mint_opts: [ | ||
transport_opts: [ | ||
cacertfile: Path.join([__DIR__ | ~w(.. eventstoredb certs ca ca.crt)]) | ||
] | ||
] |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,18 @@ defmodule Spear.MixProject do | |
inch: :dev, | ||
bless: :test, | ||
test: :test, | ||
dialyzer: :test | ||
dialyzer: :dev | ||
], | ||
name: "Spear", | ||
source_url: @source_url, | ||
deps: deps(), | ||
docs: docs(), | ||
package: package(), | ||
description: description() | ||
description: description(), | ||
dialyzer: [ | ||
plt_add_apps: [:jason], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TIL |
||
plt_file: {:no_warn, "priv/plts/dialyzer.plt"} | ||
] | ||
] | ||
end | ||
|
||
|
@@ -50,14 +54,16 @@ defmodule Spear.MixProject do | |
{:event_store_db_gpb_protobufs, "~> 2.2"}, | ||
{:connection, "~> 1.0"}, | ||
# optional dependencies | ||
{:jason, ">= 0.0.0", optional: true}, | ||
{:jason, "~> 1.0", optional: true}, | ||
|
||
# dev/test utilities | ||
{:castore, ">= 0.0.0", only: [:dev, :test]}, | ||
{:ex_doc, "~> 0.24", only: :dev, runtime: false}, | ||
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, | ||
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false}, | ||
# testing suite | ||
{:credo, "~> 1.5", only: :test}, | ||
{:credo, ">= 0.0.0", only: :test}, | ||
{:bless, "~> 1.0", only: :test}, | ||
{:excoveralls, "~> 0.7", only: :test} | ||
{:excoveralls, ">= 0.0.0", only: :test} | ||
] | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compatibility workflow should check a range of old/new Elixir and Erlang/OTP versions rather than use the main
.tool-versions
. Removing credo and updating to the new actions v3 versions looks good thoughThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, my understanding is that it is valuable to check against a range of Event Store DB versions, but since Elixir 1.10, there is not much value in adding such a matrix IMO.
Being said, sure I can add it back