Skip to content

Commit

Permalink
Setup formatter and dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Argonus committed Dec 1, 2023
1 parent dcefa6e commit 79d6a91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .formatter.exs
Original file line number Diff line number Diff line change
@@ -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"
]
]
4 changes: 4 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -89,6 +92,7 @@ jobs:
path: |
deps
_build
priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}

- name: Compile
Expand Down

0 comments on commit 79d6a91

Please sign in to comment.