-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
report lcov file to coveralls using gh action #2993
Conversation
8974.1 / Erlang 23.0.3 / small_tests / 676711f 8974.2 / Erlang 23.0.3 / internal_mnesia / 676711f 8974.4 / Erlang 23.0.3 / mysql_redis / 676711f 8974.3 / Erlang 23.0.3 / odbc_mssql_mnesia / 676711f 8974.7 / Erlang 23.0.3 / elasticsearch_and_cassandra_mnesia / 676711f 8974.5 / Erlang 23.0.3 / riak_mnesia / 676711f 8974.6 / Erlang 23.0.3 / ldap_mnesia / 676711f 8974.9 / Erlang 22.3 / pgsql_mnesia / 676711f |
Codecov Report
@@ Coverage Diff @@
## master #2993 +/- ##
==========================================
+ Coverage 79.11% 79.13% +0.02%
==========================================
Files 377 377
Lines 32846 32846
==========================================
+ Hits 25985 25994 +9
+ Misses 6861 6852 -9
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question from me.
MaybeConfigureCoveralls = fun(CONFIG) -> | ||
case {os:getenv("GITHUB_ACTIONS"), os:getenv("GITHUB_TOKEN")} of | ||
{"true", Token} when is_list(Token) -> | ||
CONFIG1 = [{coveralls_repo_token, Token}, | ||
{coveralls_service_job_id, os:getenv("GITHUB_RUN_ID")}, | ||
{coveralls_commit_sha, os:getenv("GITHUB_SHA")} | CONFIG], | ||
case os:getenv("GITHUB_EVENT_NAME") =:= "pull_request" andalso | ||
string:tokens(os:getenv("GITHUB_REF"), "/") of | ||
[_, "pull", PRNO, _] -> | ||
[{coveralls_service_pull_request, PRNO} | CONFIG1]; | ||
_ -> | ||
CONFIG1 | ||
end; | ||
_ -> | ||
CONFIG | ||
end | ||
end, | ||
|
||
Config0 = MaybeConfigureCoveralls(CONFIG), | ||
Config1 = SetupIncludedApps(Config0, EnvApps), | ||
MaybeFIPSSupport(Config1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain in the commit message why it is not needed anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one more note, let's first merge https://github.com/esl/rebar3_codecov/pull/3/files and switch back to the commit version selection for rebar3 codecov plugin before we merge this PR
coveralls rebar3 plugin fails on parallel reporting for master branch. so switching from rebar3 plugin to official coveralls GH action for coverage reporting.
d339fde
to
a9c035d
Compare
8977.1 / Erlang 23.0.3 / small_tests / 257e579 8977.2 / Erlang 23.0.3 / internal_mnesia / 257e579 8977.4 / Erlang 23.0.3 / mysql_redis / 257e579 8977.3 / Erlang 23.0.3 / odbc_mssql_mnesia / 257e579 8977.7 / Erlang 23.0.3 / elasticsearch_and_cassandra_mnesia / 257e579 8977.5 / Erlang 23.0.3 / riak_mnesia / 257e579 8977.6 / Erlang 23.0.3 / ldap_mnesia / 257e579 8977.9 / Erlang 22.3 / pgsql_mnesia / 257e579 |
8978.1 / Erlang 23.0.3 / small_tests / a6da662 8978.2 / Erlang 23.0.3 / internal_mnesia / a6da662 8978.3 / Erlang 23.0.3 / odbc_mssql_mnesia / a6da662 8978.5 / Erlang 23.0.3 / riak_mnesia / a6da662 8978.6 / Erlang 23.0.3 / ldap_mnesia / a6da662 8978.7 / Erlang 23.0.3 / elasticsearch_and_cassandra_mnesia / a6da662 8978.9 / Erlang 22.3 / pgsql_mnesia / a6da662 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Use Coveralls GH action for reporting coverage