Skip to content

Commit

Permalink
Use coveralls fork to provide git information from github to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jun 3, 2021
1 parent e812dcf commit 234fc70
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -168,4 +168,19 @@ jobs:
if: matrix.otp == 24.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.otp }}
run: rebar3 as test coveralls send


finish:
needs: tests
runs-on: ubuntu-20.04
if: always()
steps:
- name: Coveralls Finished
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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\"}}"
4 changes: 3 additions & 1 deletion rebar.config.script
Expand Up @@ -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,
Expand Down

0 comments on commit 234fc70

Please sign in to comment.