Skip to content

Commit d598003

Browse files
author
Vladimir Kotal
committed
add Coveralls token
1 parent 4511722 commit d598003

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
OPENGROK_PULL_REQUEST: ${{ github.head_ref }}
2929
OPENGROK_REPO_SLUG: ${{ github.repository }}
3030
OPENGROK_REF: ${{ github.ref }}
31+
OPENGROK_COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
3132
run: ./dev/main
3233
macos:
3334
name: macOS with Java 11

dev/main

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ fi
1313
extra_args=""
1414
if [[ "x$OPENGROK_REPO_SLUG" == "xoracle/opengrok" && "x$OPENGROK_BRANCH" == "xmaster" ]]; then
1515
echo "Enabling Coveralls"
16-
extra_args="jacoco:report coveralls:report"
16+
if [[ -n $OPENGROK_COVERALLS_TOKEN ]]; then
17+
extra_args="$extra_args -DrepoToken=$OPENGROK_COVERALLS_TOKEN"
18+
fi
19+
extra_args="$extra_args jacoco:report coveralls:report"
1720

1821
#
1922
# Sonar seems to only work on master branch commits.

0 commit comments

Comments
 (0)