Skip to content

Commit

Permalink
chore: add dialyzer to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Jan 6, 2023
1 parent 5eda4dc commit 01f4e28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ jobs:
- name: Credo
run: mix credo

- name: Create Dialyzer PLTs
if: steps.plt_cache.outputs.cache-hit != 'true'
run: mix dialyzer --plt

- name: Run dialyzer
run: mix dialyzer --format github

publish-hex-package:
name: Publish Hex Package ⬆️☁️
runs-on: ubuntu-20.04
Expand Down
5 changes: 4 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ defmodule Spear.MixProject do
deps: deps(),
docs: docs(),
package: package(),
description: description()
description: description(),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end

Expand Down
Empty file added priv/plts/.gitkeep
Empty file.

0 comments on commit 01f4e28

Please sign in to comment.