Skip to content

Commit b157aa6

Browse files
committed
ci: fail if COVERALLS_REPO_TOKEN is not set and add verbose logging
Ensures the build fails if the token is missing so we can diagnose why coverage is not being sent to Coveralls. Assisted-By: Claude Code
1 parent 5ce48bd commit b157aa6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/java-ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,11 @@ jobs:
465465
if-no-files-found: ignore
466466

467467
- name: Push coverage to Coveralls
468-
if: ${{ secrets.COVERALLS_REPO_TOKEN != '' }}
469468
env:
470469
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
471-
run: ./gradlew coverallsJacoco --info
470+
run: |
471+
if [ -z "$COVERALLS_REPO_TOKEN" ]; then
472+
echo "ERROR: COVERALLS_REPO_TOKEN is not set"
473+
exit 1
474+
fi
475+
./gradlew coverallsJacoco --info

0 commit comments

Comments
 (0)