From 79d6a91a0065ef2ce79f149ef1a94a78c429a65c Mon Sep 17 00:00:00 2001 From: Argonus Date: Fri, 1 Dec 2023 15:22:28 +0100 Subject: [PATCH] Setup formatter and dialyzer --- .formatter.exs | 8 +++++++- .github/workflows/checks.yml | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.formatter.exs b/.formatter.exs index d2cda26..7455561 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,4 +1,10 @@ # Used by "mix format" [ - inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] + inputs: [ + "{mix,.formatter}.exs", + "{config,test}/**/*.{ex,exs}", + "lib/kayrock/*.{ex,exs}", + "lib/mix/**/*.{ex,exs}", + "lib/kayrock.ex" + ] ] diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 733330d..46db08e 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -41,15 +41,18 @@ jobs: path: | deps _build + priv/plts key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} - name: Install Dependencies if: steps.mix-cache.outputs.cache-hit != 'true' run: | + mkdir -p priv/plts mix local.rebar --force mix local.hex --force mix deps.get mix deps.compile + mix dialyzer --plt static_code_analysis: name: Static Code Analysis @@ -89,6 +92,7 @@ jobs: path: | deps _build + priv/plts key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} - name: Compile