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

Merge pull request #63 from sile/pr62-follow-up

Follow-up of #62 (CI failure fix)
Takeru Ohta 3 лет назад
Родитель
Сommit
6da5660ab6
2 измененных файлов с 9 добавлено и 8 удалено
  1. 5 3
      .github/workflows/ci.yml
  2. 4 5
      rebar.config

+ 5 - 3
.github/workflows/ci.yml

@@ -22,12 +22,14 @@ jobs:
       - run: rebar3 eunit
       - run: rebar3 dialyzer
       - run: rebar3 edoc
-      - run: rebar3 cover
-      - run: rebar3 as test covertool generate
-      - run: cp _build/test/covertool/jsone.covertool.xml ./cobertura.xml
   cov:
     needs: ci
     runs-on: ubuntu-latest
     steps:
+      - uses: actions/checkout@v2
+      - run: rebar3 eunit
+      - run: rebar3 cover
+      - run: rebar3 covertool generate
+      - run: cp _build/test/covertool/jsone.covertool.xml ./cobertura.xml
       - run: sudo pip install codecov
       - run: codecov

+ 4 - 5
rebar.config

@@ -49,10 +49,9 @@
      [
       edown
      ]}
-   ]},
-  {test,
-   [
-    {erl_opts, [debug_info]},
-    {project_plugins, [covertool]}
    ]}
  ]}.
+
+{project_plugins, [covertool]}.
+{cover_export_enabled, true}.
+{covertool, [{coverdata_files, ["ct.coverdata", "eunit.coverdata"]}]}.