-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added upload of the coverage reports to Codecov
- Loading branch information
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |