Просмотр исходного кода

refactor(build): Add dialyzer Makefile target

Zaiming Shi 5 лет назад
Родитель
Сommit
558f28ba27
2 измененных файлов с 7 добавлено и 11 удалено
  1. 2 2
      .github/workflows/run_test_case.yaml
  2. 5 9
      Makefile

+ 2 - 2
.github/workflows/run_test_case.yaml

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

+ 5 - 9
Makefile

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