Skip to content

Commit

Permalink
feat: Testando Jacoco Report com Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
costvin15 committed Apr 21, 2024
1 parent 748086d commit cefb72f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -21,7 +23,14 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: JaCoCo Report
- name: Run coverage
run: mvn test
- name: Add coverage to PR
id: jacoco
uses: Madrapps/[email protected]
with:
paths: |
${{ github.workspace }}/target/jacoco-report/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 60
min-coverage-changed-files: 80

0 comments on commit cefb72f

Please sign in to comment.