Merge pull request #4247 from zmstone/chore-run-eunit-in-ci

chore(ci): run eunit test in github action
This commit is contained in:
Zaiming Shi 2021-02-26 22:00:49 +01:00 committed by GitHub
commit cac2fe9009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -47,6 +47,7 @@ jobs:
printenv > .env
docker exec -i erlang bash -c "make xref"
docker exec --env-file .env -i erlang bash -c "make ct"
docker exec --env-file .env -i erlang bash -c "make eunit"
docker exec -i erlang bash -c "make cover"
docker exec -i erlang bash -c "make coveralls"
- uses: actions/upload-artifact@v1

View File

@ -30,7 +30,7 @@ get-dashboard:
.PHONY: eunit
eunit: $(REBAR)
$(REBAR) eunit
$(REBAR) eunit -v -c
.PHONY: proper
proper: $(REBAR)

View File

@ -1,6 +1,6 @@
{application, emqx_exhook,
[{description, "EMQ X Extension for Hook"},
{vsn, "git"},
{vsn, "4.3.0"},
{modules, []},
{registered, []},
{mod, {emqx_exhook_app, []}},

View File

@ -72,6 +72,7 @@ profiles() ->
, {test, [ {deps, test_deps()}
, {plugins, test_plugins()}
, {erl_opts, [debug_info, {parse_transform, mod_vsn}] ++ erl_opts_i()}
, {extra_src_dirs, [{"test", [{recursive,true}]}]}
]}
].