Skip to content

Commit 3cd3fd4

Browse files
committed
Run dialyzer only on lint matrix entry, in :dev env
1 parent 345a84d commit 3cd3fd4

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ jobs:
9797
- name: Run tests
9898
run: mix test
9999

100-
# Step: Execute dialyzer.
100+
# Step: Execute dialyzer. Only on the lint matrix entry (latest
101+
# Elixir + OTP) and in :dev env so the analysis matches local
102+
# `mix dialyzer` runs. Running across every matrix entry under
103+
# MIX_ENV=test produces many spurious warnings from differences in
104+
# Elixir/OTP versions and test-only deps.
101105
- name: Run dialyzer
102-
run: mix dialyzer
106+
if: matrix.lint
107+
env:
108+
MIX_ENV: dev
109+
run: mix deps.get && mix dialyzer

0 commit comments

Comments
 (0)