Skip to content

Commit

Permalink
Added upload of the coverage reports to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
xxSlashxx committed Jan 5, 2025
1 parent 393b9b5 commit 8da05e7
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,8 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B verify --file pom.xml
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
jacoco-csv-file: '**/jacoco.csv'
- name: Commit the badge (if it changed)
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name 'Roland Speckmeier'
git config --global user.email '[email protected]'
git add ../.github/badges/jacoco.svg
git commit -m "Autogenerated JaCoCo coverage badge"
git push
fi
token: ${{ secrets.CODECOV_TOKEN }}
slug: xxSlashxx/graphql-demo

0 comments on commit 8da05e7

Please sign in to comment.