-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
96 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 |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
coverage: | ||
|
@@ -37,7 +36,6 @@ jobs: | |
uses: uhafner/[email protected] | ||
with: | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
HEAD_SHA: ${{github.event.pull_request.head.sha}} | ||
CONFIG: > | ||
{ | ||
"tests": { | ||
|
@@ -54,45 +52,32 @@ jobs: | |
"failureImpact": -5, | ||
"maxScore": 100 | ||
}, | ||
"analysis": [ | ||
{ | ||
"name": "Style", | ||
"id": "style", | ||
"tools": [ | ||
{ | ||
"id": "checkstyle", | ||
"name": "CheckStyle", | ||
"pattern": "**/target/checkstyle-result.xml" | ||
}, | ||
{ | ||
"id": "pmd", | ||
"name": "PMD", | ||
"pattern": "**/target/pmd.xml" | ||
} | ||
], | ||
"errorImpact": -1, | ||
"highImpact": -1, | ||
"normalImpact": -1, | ||
"lowImpact": -1, | ||
"maxScore": 100 | ||
}, | ||
{ | ||
"name": "Bugs", | ||
"id": "bugs", | ||
"tools": [ | ||
{ | ||
"id": "spotbugs", | ||
"name": "SpotBugs", | ||
"pattern": "**/target/spotbugsXml.xml" | ||
} | ||
], | ||
"errorImpact": -3, | ||
"highImpact": -3, | ||
"normalImpact": -3, | ||
"lowImpact": -3, | ||
"maxScore": 100 | ||
} | ||
], | ||
"analysis": { | ||
"name": "Warnings", | ||
"id": "warnings", | ||
"tools": [ | ||
{ | ||
"id": "checkstyle", | ||
"name": "CheckStyle", | ||
"pattern": "**/target/checkstyle-result.xml" | ||
}, | ||
{ | ||
"id": "pmd", | ||
"name": "PMD", | ||
"pattern": "**/target/pmd.xml" | ||
}, | ||
{ | ||
"id": "spotbugs", | ||
"name": "SpotBugs", | ||
"pattern": "**/target/spotbugsXml.xml" | ||
} | ||
], | ||
"errorImpact": -1, | ||
"highImpact": -1, | ||
"normalImpact": -1, | ||
"lowImpact": -1, | ||
"maxScore": 100 | ||
}, | ||
"coverage": [ | ||
{ | ||
"tools": [ | ||
|
@@ -136,38 +121,31 @@ jobs: | |
- name: Generate the badge SVG image for the line coverage | ||
uses: emibcn/[email protected] | ||
with: | ||
label: 'Line coverage' | ||
label: 'Lines' | ||
status: ${{ steps.metrics.outputs.line }}% | ||
color: 'green' | ||
path: badges/line-coverage.svg | ||
- name: Generate the badge SVG image for the branch coverage | ||
uses: emibcn/[email protected] | ||
with: | ||
label: 'Branch coverage' | ||
label: 'Branches' | ||
status: ${{ steps.metrics.outputs.branch }}% | ||
color: 'green' | ||
path: badges/branch-coverage.svg | ||
- name: Generate the badge SVG image for the mutation coverage | ||
uses: emibcn/[email protected] | ||
with: | ||
label: 'Mutation coverage' | ||
label: 'Mutations' | ||
status: ${{ steps.metrics.outputs.mutation }}% | ||
color: 'green' | ||
path: badges/mutation-coverage.svg | ||
- name: Generate the badge SVG image for the style warnings | ||
- name: Generate the badge SVG image for the warnings | ||
uses: emibcn/[email protected] | ||
with: | ||
label: 'Style warnings' | ||
status: ${{ steps.metrics.outputs.style }} | ||
label: 'Warnings' | ||
status: ${{ steps.metrics.outputs.warnings }} | ||
color: 'orange' | ||
path: badges/style-warnings.svg | ||
- name: Generate the badge SVG image for the potential bugs | ||
uses: emibcn/[email protected] | ||
with: | ||
label: 'Potential Bugs' | ||
status: ${{ steps.metrics.outputs.bugs }} | ||
color: 'red' | ||
path: badges/bugs.svg | ||
path: badges/warnings.svg | ||
- name: Commit badge | ||
continue-on-error: true | ||
run: | | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.