Skip to content

Commit

Permalink
Pull request #219: Switch to SonarCloud for coverage badge.
Browse files Browse the repository at this point in the history
Merge in ITB/shacl-validator from development to master

* commit '088efa6164281cf34d5e7a4dad633e486c3b95d5':
  Switch to SonarCloud for coverage badge.
  • Loading branch information
costas80 committed Dec 4, 2023
2 parents 81f10e6 + 088efa6 commit 3386fcb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 303 deletions.
136 changes: 0 additions & 136 deletions .github/badges/branches.svg

This file was deleted.

136 changes: 0 additions & 136 deletions .github/badges/jacoco.svg

This file was deleted.

30 changes: 1 addition & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ target
**/.factorypath
pom.xml.versionsBackup
/shaclvalidator-web/node/
/shaclvalidator-web/node_modules/
/.github/badges
/shaclvalidator-web/node_modules/

0 comments on commit 3386fcb

Please sign in to comment.