Use COVERALLS environment variable to detect when coveralls is required
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
rebar3 as test coveralls send
|
COVERALLS=true rebar3 as test coveralls send
|
||||||
curl -v -k https://coveralls.io/webhook \
|
curl -v -k https://coveralls.io/webhook \
|
||||||
--header "Content-Type: application/json" \
|
--header "Content-Type: application/json" \
|
||||||
--data '{"repo_name":"$GITHUB_REPOSITORY",
|
--data '{"repo_name":"$GITHUB_REPOSITORY",
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ Rules = [
|
|||||||
{compile, {pc, compile}},
|
{compile, {pc, compile}},
|
||||||
{clean, {pc, clean}}
|
{clean, {pc, clean}}
|
||||||
]}]), []},
|
]}]), []},
|
||||||
{[plugins], IsRebar3 and (os:getenv("GITHUB_ACTIONS") == "true"),
|
{[plugins], os:getenv("COVERALLS") == "true",
|
||||||
AppendList([{coveralls, {git,
|
AppendList([{coveralls, {git,
|
||||||
"https://github.com/RoadRunnr/coveralls-erl.git",
|
"https://github.com/RoadRunnr/coveralls-erl.git",
|
||||||
{branch, "feature/git-info"}}} ]), []},
|
{branch, "feature/git-info"}}} ]), []},
|
||||||
|
|||||||
Reference in New Issue
Block a user