diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 92cbf86..674413f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,6 +5,7 @@ on: branches: [main] env: + MIX_ENV: test elixir_version: '1.17.0' otp_version: '26.2.5.6' @@ -122,12 +123,12 @@ jobs: uses: actions/cache@v4 id: plt_cache with: - key: plt-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}-${{ hashFiles('**/*.ex') }} + key: plt-${{ env.otp_version }}-${{ env.elixir_version }}-${{ hashFiles('**/mix.lock') }}-${{ hashFiles('**/*.ex') }} restore-keys: | - plt-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}-${{ hashFiles('**/*.ex') }} - plt-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}- - plt-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}- - plt-${{ steps.beam.outputs.otp-version }}- + plt-${{ env.otp_version }}-${{ env.elixir_version }}-${{ hashFiles('**/mix.lock') }}-${{ hashFiles('**/*.ex') }} + plt-${{ env.otp_version }}-${{ env.elixir_version }}-${{ hashFiles('**/mix.lock') }}- + plt-${{ env.otp_version }}-${{ env.elixir_version }}- + plt-${{ env.otp_version }}- path: priv/plts - name: Create PLTs diff --git a/.gitignore b/.gitignore index 0d7e0d5..47273e8 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,10 @@ priv/static/* # Ignore local .db files /priv/*.db* +# Dialyzer +/priv/plts/*.plt +/priv/plts/*.plt.hash + # Ignore .tool-versions file .tool-versions diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d4f867..7e3ea05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,18 @@ # CHANGELOG (v0.1.X) -## 0.1.7 🚀 (2025-03-21) +## 0.1.8 () -### Backwards incompatible changes for 0.1.6 +### Backwards incompatible changes for 0.1.7 * None ### Bug fixes - * Fixing possible pattern match error with Liveview Socket without URI + * None ### Enhancements + * [[`PR-13`](https://github.com/thiagoesteves/deployex/pull/13)] Fixed dialyzer configuration # 🚀 Previous Releases + * [0.1.7 (2025-03-21)](https://github.com/thiagoesteves/observer_web/blob/v0.1.7/CHANGELOG.md) * [0.1.6 (2025-03-21)](https://github.com/thiagoesteves/observer_web/blob/v0.1.6/CHANGELOG.md) * [0.1.5 (2025-02-26)](https://github.com/thiagoesteves/observer_web/blob/v0.1.5/CHANGELOG.md) * [0.1.4 (2025-02-11)](https://github.com/thiagoesteves/observer_web/blob/v0.1.4/CHANGELOG.md) diff --git a/mix.exs b/mix.exs index 00f4e9f..4a8ea10 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule ObserverWeb.MixProject do use Mix.Project @source_url "https://github.com/thiagoesteves/observer_web" - @version "0.1.7" + @version "0.1.8" def project do [ @@ -21,7 +21,12 @@ defmodule ObserverWeb.MixProject do docs: docs(), deps: deps(), test_coverage: [tool: ExCoveralls], - dialyzer: [ignore_warnings: ".dialyzer_ignore.exs"], + dialyzer: [ + plt_add_apps: [:ex_unit, :mix], + check_plt: true, + plt_file: {:no_warn, "priv/plts/dialyzer.plt"}, + ignore_warnings: ".dialyzer_ignore.exs" + ], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, @@ -120,7 +125,7 @@ defmodule ObserverWeb.MixProject do # Tooling {:credo, "~> 1.7", only: [:test, :dev], runtime: false}, - {:dialyxir, "~> 1.4", only: [:dev], runtime: false}, + {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:floki, "~> 0.33", only: [:test, :dev]}, {:mox, "~> 1.0", only: :test}, {:excoveralls, "~> 0.18", only: :test},