Test and release on JDK 17 and 21 #150
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: test-java | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - renovate/** | |
| paths: | |
| - java/** | |
| - testdata/** | |
| - .github/** | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - java/** | |
| - testdata/** | |
| - .github/** | |
| workflow_call: | |
| jobs: | |
| test-java: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| java: ["17", "21"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: "zulu" | |
| java-version: ${{ matrix.java }} | |
| cache: "maven" | |
| - run: mvn verify | |
| working-directory: java | |
| test-java-pittest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: "temurin" | |
| java-version: 17 | |
| cache: "maven" | |
| - run: mvn test-compile org.pitest:pitest-maven:mutationCoverage | |
| working-directory: java |