-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request #219: Switch to SonarCloud for coverage badge.
Merge in ITB/shacl-validator from development to master * commit '088efa6164281cf34d5e7a4dad633e486c3b95d5': Switch to SonarCloud for coverage badge.
- Loading branch information
Showing
4 changed files
with
2 additions
and
303 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -69,32 +69,4 @@ jobs: | |
working-directory: commons | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
working-directory: main | ||
- name: Generate coverage badge | ||
id: jacoco | ||
uses: cicirello/[email protected] | ||
with: | ||
generate-branches-badge: true | ||
jacoco-csv-file: > | ||
main/shaclvalidator-common/target/site/jacoco/jacoco.csv | ||
main/shaclvalidator-jar/target/site/jacoco/jacoco.csv | ||
main/shaclvalidator-service/target/site/jacoco/jacoco.csv | ||
main/shaclvalidator-web/target/site/jacoco/jacoco.csv | ||
main/shaclvalidator-war/target/site/jacoco/jacoco.csv | ||
- name: Log coverage percentage | ||
run: | | ||
echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | ||
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" | ||
- name: Commit coverage badge (if changed) | ||
run: | | ||
cd main | ||
set +e | ||
if [[ `git status --porcelain` ]]; then | ||
git config --global user.name 'ISA2ITB' | ||
git config --global user.email '[email protected]' | ||
git add .github/badges/branches.svg | ||
git add .github/badges/jacoco.svg | ||
git commit -m "Autogenerated JaCoCo coverage badge" | ||
git push --force origin master | ||
fi | ||
set -e | ||
working-directory: main |
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