⬆️ Bump actions/setup-python from 5 to 6 #38
Workflow file for this run
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
| --- | |
| name: Java 17 CI (Maven) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| id-token: write # mandatory for OIDC Codecov | |
| jobs: | |
| build: | |
| name: Build with Java 17 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| cache: maven | |
| - name: Verify Java version | |
| run: java -version | |
| - name: Build with Maven | |
| run: mvn -B -ntp clean verify | |
| - name: Upload JaCoCo HTML report as artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: jacoco-html-report | |
| path: target/site/jacoco | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: target/site/jacoco/jacoco.xml | |
| use_oidc: true | |
| fail_ci_if_error: true | |
| verbose: true | |
| - name: You should not pass | |
| run: mvn youshallnotpass:youshallnotpass | |
| - name: jtcop | |
| run: mvn jtcop:check | |
| - name: Run PIT mutation testing | |
| run: mvn org.pitest:pitest-maven:mutationCoverage | |
| - name: Upload PIT HTML report as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pit-html-report | |
| path: target/pit-reports |