Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Add JaCoCo to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoly Frolov committed Feb 4, 2024
1 parent 5bdc4b1 commit 40e5537
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ jobs:
java-version: '21'
distribution: 'oracle'
cache: maven

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Test with Maven
run: mvn -B test --file pom.xml

- name: JUnit Report Action
uses: mikepenz/action-junit-report@v4.1.0
if: success() || failure() # always run even if the previous step fails

- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
with:
report_paths: '**/build/surefire-reports/TEST-*.xml'
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
# - name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
generate-branches-badge: true

0 comments on commit 40e5537

Please sign in to comment.