Skip to content

Commit c450641

Browse files
committed
ci: add environment variables for coveralls github actions detection
Provide CI metadata (CI_NAME, CI_BUILD_NUMBER, CI_BRANCH, etc.) so the coveralls plugin can properly identify the build context and send coverage data with correct metadata to Coveralls API. Assisted-By: Claude Code
1 parent 5400d21 commit c450641

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
@@ -467,10 +467,14 @@ jobs:
467467
- name: Push coverage to Coveralls
468468
env:
469469
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
470+
CI_NAME: github
471+
CI_BUILD_NUMBER: ${{ github.run_number }}
472+
CI_BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
473+
CI_BRANCH: ${{ github.ref_name }}
474+
CI_PULL_REQUEST: ${{ github.event.pull_request.number }}
470475
run: |
471476
if [ -z "$COVERALLS_REPO_TOKEN" ]; then
472477
echo "ERROR: COVERALLS_REPO_TOKEN is not set"
473478
exit 1
474479
fi
475-
echo "Token is set: $(echo $COVERALLS_REPO_TOKEN | head -c 20)..."
476-
./gradlew coverallsJacoco --debug 2>&1 | grep -i "coveralls\|token\|error\|http" | tail -50
480+
./gradlew coverallsJacoco

0 commit comments

Comments
 (0)