From 2b0d724aef722b2a2fb0a07193e8a56b5db06fa8 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 3 Jun 2021 16:48:10 +0200 Subject: [PATCH] Workaround so coveralls website shows git commit information References: https://github.com/markusn/coveralls-erl/pull/36 https://github.com/deadtrickster/prometheus.erl/pull/123 --- .github/workflows/ci.yml | 9 ++++++++- rebar.config.script | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6e2cead6..64e180c0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,7 +171,14 @@ jobs: if: matrix.otp == 24.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: rebar3 as test coveralls send + run: | + rebar3 as test coveralls send + curl -v -k https://coveralls.io/webhook \ + --header "Content-Type: application/json" \ + --data '{"repo_name":"$GITHUB_REPOSITORY", + "repo_token":"$GITHUB_TOKEN", + "payload":{"build_num":$GITHUB_RUN_ID, + "status":"done"}}' binaries: name: Binaries diff --git a/rebar.config.script b/rebar.config.script index 9591b9ead..a2e31ef4f 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -363,7 +363,9 @@ Rules = [ {clean, {asn, clean}} ]}]), []}, {[plugins], IsRebar3 and (os:getenv("GITHUB_ACTIONS") == "true"), - AppendList([coveralls]), []}, + AppendList([{coveralls, {git, + "https://github.com/RoadRunnr/coveralls-erl.git", + {branch, "feature/git-info"}}} ]), []}, {[overrides], [post_hook_configure], SystemDeps == false, AppendList2(GenDepsConfigure), [], []}, {[ct_extra_params], [eunit_compile_opts], true,