Skip to content

Commit 1dc4a26

Browse files
Copilotbrunoborgesstephentoub
authored
Remove Java JaCoCo badge auto-update pipeline (#1826)
* Initial plan * Remove Java JaCoCo badge automation Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com> * chore: scope workflow permissions to contents: read Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent a4ecf99 commit 1dc4a26

4 files changed

Lines changed: 1 addition & 159 deletions

File tree

‎.github/badges/jacoco-generated.svg‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎.github/badges/jacoco-handwritten.svg‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎.github/scripts/generate-java-coverage-badge.sh‎

Lines changed: 0 additions & 104 deletions
This file was deleted.

‎.github/workflows/java-sdk-tests.yml‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ on:
3131
merge_group:
3232

3333
permissions:
34-
contents: write
35-
checks: write
36-
pull-requests: write
34+
contents: read
3735

3836
jobs:
3937
java-sdk:
@@ -117,22 +115,6 @@ jobs:
117115
java/target/surefire-reports-isolated/
118116
retention-days: 1
119117

120-
- name: Generate JaCoCo badge
121-
if: success() && github.ref == 'refs/heads/main' && matrix.test-jdk == '25'
122-
working-directory: .
123-
run: bash .github/scripts/generate-java-coverage-badge.sh java/target/site/jacoco-coverage/jacoco.csv .github/badges
124-
125-
- name: Create PR for JaCoCo badge update
126-
if: success() && github.ref == 'refs/heads/main' && matrix.test-jdk == '25'
127-
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v7
128-
with:
129-
commit-message: "Update Java JaCoCo coverage badge"
130-
title: "Update Java JaCoCo coverage badge"
131-
body: "Automated Java JaCoCo coverage badge update from CI."
132-
branch: auto/update-java-jacoco-badge
133-
add-paths: .github/badges/
134-
delete-branch: true
135-
136118
- name: Generate Test Report Summary
137119
if: always()
138120
uses: ./.github/actions/java-test-report

0 commit comments

Comments
 (0)