Skip to content

Commit 97c0fb5

Browse files
committed
build: add codecov links
1 parent d1d9d66 commit 97c0fb5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/full-build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,19 @@ jobs:
172172
token: ${{ secrets.CODECOV_TOKEN }}
173173
files: tests/target/site/jacoco-aggregate/jacoco.xml
174174
fail_ci_if_error: false
175+
- name: 🔗 Codecov Report Link
176+
if: always() && matrix.os == 'ubuntu-latest' && matrix.java-version == '21'
177+
run: |
178+
# Use the PR head SHA if available, otherwise fallback to the push commit SHA
179+
COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
180+
REPO="${{ github.repository }}"
181+
182+
# Construct both URLs
183+
COMMIT_URL="https://app.codecov.io/github/$REPO/commit/$COMMIT_SHA"
184+
PROJECT_URL="https://app.codecov.io/github/$REPO"
185+
186+
echo "" >> $GITHUB_STEP_SUMMARY
187+
echo "### ☂️ Codecov Report" >> $GITHUB_STEP_SUMMARY
188+
echo "Your upload is queued for processing. When finished, results will be available at:" >> $GITHUB_STEP_SUMMARY
189+
echo "- 👉 **[View Report for this Commit]($COMMIT_URL)**" >> $GITHUB_STEP_SUMMARY
190+
echo "- 🏠 **[View Overall Project Dashboard]($PROJECT_URL)**" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)