Skip to content

Commit

Permalink
Fix path for metrics and PMD.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Oct 27, 2024
1 parent b20da0b commit f150681
Showing 1 changed file with 80 additions and 1 deletion.
81 changes: 80 additions & 1 deletion .github/workflows/update-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,88 @@ jobs:
- name: Build and test with Maven
run: mvn -V --color always -ntp clean verify -Pci -Ppit -Pdepgraph | tee maven.log
- name: Run Quality Monitor
uses: uhafner/quality-monitor@v1
uses: uhafner/quality-monitor@v1.12.0-beta-1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
config: >
{
"analysis": [
{
"name": "Style",
"id": "style",
"tools": [
{
"id": "checkstyle",
"pattern": "**/target/**checkstyle-result.xml"
},
{
"id": "pmd",
"pattern": "**/target/pmd-*/pmd.xml"
}
]
},
{
"name": "Bugs",
"id": "bugs",
"icon": "bug",
"tools": [
{
"id": "spotbugs",
"sourcePath": "src/main/java",
"pattern": "**/target/spotbugsXml.xml"
},
{
"id": "error-prone",
"pattern": "**/maven.log"
}
]
},
{
"name": "Vulnerabilities",
"id": "vulnerabilities",
"icon": "shield",
"tools": [
{
"id": "owasp-dependency-check",
"pattern": "**/target/dependency-check-report.json"
}
]
}
],
"coverage": [
{
"name": "Code Coverage",
"tools": [
{
"id": "jacoco",
"name": "Line Coverage",
"metric": "line",
"sourcePath": "src/main/java",
"pattern": "**/target/site/jacoco/jacoco.xml"
},
{
"id": "jacoco",
"name": "Branch Coverage",
"metric": "branch",
"sourcePath": "src/main/java",
"pattern": "**/target/site/jacoco/jacoco.xml"
}
]
},
{
"name": "Mutation Coverage",
"tools": [
{
"id": "pit",
"name": "Mutation Coverage",
"metric": "mutation",
"sourcePath": "src/main/java",
"pattern": "**/target/pit-reports/mutations.xml"
}
]
}
]
}
- name: Write metrics to GitHub output
id: metrics
run: |
Expand Down

0 comments on commit f150681

Please sign in to comment.