Skip to content

Commit

Permalink
feat: add coverage action
Browse files Browse the repository at this point in the history
Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
  • Loading branch information
charankamarapu committed Apr 3, 2024
1 parent f349182 commit dd5665c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/covergae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
mvn clean install -Dmaven.test.skip=true
mvn test
- name: SonarQube Analysis
run: |
cd spring-petclinic/spring-petclinic-rest
mvn clean install -Dmaven.test.skip=true
mvn verify sonar:sonar -Dsonar.projectKey=msil-test-new -Dsonar.coverage.jacoco.xmlReportPaths=target/site/e2e-ut-aggregate/jacoco.xml
- name: Publish JaCoCo report
uses: cicirello/jacoco-report@v2
with:
jacoco-csv-file: spring-petclinic/spring-petclinic-rest/target/site/e2e-ut-aggregate/jacoco.csv
report-name: "JaCoCo Coverage Report"
minimum-coverage: 85
fail-if-coverage-less-than-minimum: true

# Add additional steps for coverage threshold enforcement if needed

0 comments on commit dd5665c

Please sign in to comment.