refactor(build): Add dialyzer Makefile target

This commit is contained in:
Zaiming Shi 2020-11-03 19:22:40 +01:00
parent ecf69b3464
commit 558f28ba27
2 changed files with 7 additions and 11 deletions

View File

@ -7,10 +7,10 @@ jobs:
run_test_case: run_test_case:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: erlang:22.1 image: erlang:22.1
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Code dialyzer - name: Code dialyzer

View File

@ -19,14 +19,6 @@ ensure-rebar3:
$(REBAR): ensure-rebar3 $(REBAR): ensure-rebar3
.PHONY: xref
xref:
$(REBAR) xref
.PHONY: dialyzer
dialyzer:
$(REBAR) dialyzer
.PHONY: distclean .PHONY: distclean
distclean: distclean:
@rm -rf _build @rm -rf _build
@ -67,8 +59,12 @@ endif
$(REBAR) as $(@:deps-%=%) get-deps $(REBAR) as $(@:deps-%=%) get-deps
.PHONY: xref .PHONY: xref
xref: xref: $(REBAR)
$(REBAR) as test xref $(REBAR) as test xref
.PHONY: dialyzer
dialyzer: $(REBAR)
$(REBAR) as test dialyzer
include packages.mk include packages.mk
include docker.mk include docker.mk