File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,30 @@ jobs:
35
35
elixir-version : ${{matrix.elixir}}
36
36
37
37
- name : Install dependencies
38
- run : mix deps.get --only test
38
+ run : mix deps.get --only test, deps.compile
39
+
40
+ # Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
41
+ # Cache key based on Elixir & Erlang version (also useful when running in matrix)
42
+ - name : Cache Dialyzer's PLT
43
+ uses : actions/cache@v2
44
+ id : cache-plt
45
+ with :
46
+ path : priv/plts
47
+ key : ${{ runner.os }}-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}
48
+
49
+ # Create PLTs if no cache was found
50
+ - name : Create PLTs
51
+ if : steps.cache-plt.outputs.cache-hit != 'true'
52
+ run : mix do deps.get, dialyzer --plt
39
53
40
54
- name : Check formatting
41
55
run : mix format --check-formatted
42
56
if : ${{matrix.lint}}
43
57
44
58
- name : Check for unused dependencies
45
- run : mix deps.get && mix deps.unlock --check-unused
59
+ run : mix do deps.get, deps.unlock --check-unused
46
60
if : ${{matrix.lint}}
47
61
48
- - name : Compile dependencies
49
- run : mix deps.compile
50
-
51
62
- name : Compile with --warnings-as-errors
52
63
run : mix compile --warnings-as-errors
53
64
if : ${{matrix.lint}}
59
70
- name : Run tests with coverage
60
71
run : mix coveralls.github --trace
61
72
if : ${{matrix.coverage}}
73
+
74
+ - name : Run Dialyzer
75
+ run : mix dialyzer
You can’t perform that action at this time.
0 commit comments