Repository navigation
fix: update Jackson 2 and restore actual coverage reporting #85
This file contains hidden or 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
| # CI workflow for the main line (JDK 17) | |
| # | |
| # Triggers: | |
| # - push / pull_request on the main branch | |
| # - manual workflow_dispatch | |
| # | |
| # Runs `mvn -B clean verify` which collects JaCoCo coverage and checks the target | |
| # (90% line coverage, warning only: haltOnFailure=false) configured in the POM. | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: JDK 17 Build & Verify | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v7 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: maven | |
| - name: Build and verify with JaCoCo coverage gate | |
| run: | | |
| mvn -B --no-transfer-progress clean verify | |
| test -s target/jacoco.exec | |
| test -s target/site/jacoco/jacoco.xml | |
| - name: Upload JaCoCo coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: jacoco-coverage | |
| path: target/site/jacoco | |
| retention-days: 14 | |
| - name: Upload surefire reports | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: surefire-reports | |
| path: target/surefire-reports | |
| retention-days: 14 |