Skip to content

Commit

Permalink
Updates workflows to Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Nov 15, 2023
1 parent 65c54e2 commit dd977b4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
experimental: false
cache-id: "jdk21"
java: 21
dist: zulu
dist: temurin
flags: ""
- title: "Experimental JDK EA (simplified)"
experimental: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pitest-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
java-version: 21
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
path: ~/.m2/repository
key: ${{ runner.os }}-mvn-pitest-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-mvn-pitest
- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
distribution: temurin
java-version: 21
- name: run pitest
# pitest has been bound to a profile called pitest for normal running
# we add config to analyse only changes made within a PR and treat surviving mutants as check errors
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Set up JDK 17'
- name: 'Set up JDK'
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: temurin
cache: maven
- name: 'Set release version'
Expand Down
18 changes: 16 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,20 @@
<jdk>[17,)</jdk>
</activation>

<modules>
<module>equalsverifier-core</module>
<module>equalsverifier-11</module>
<module>equalsverifier-16</module>
<module>equalsverifier-17</module>
</modules>
</profile>

<profile>
<id>modules-jdk21</id>
<activation>
<jdk>[21,)</jdk>
</activation>

<modules>
<module>equalsverifier-core</module>
<module>equalsverifier-11</module>
Expand All @@ -543,9 +557,9 @@
</profile>

<profile>
<id>modules-jdk17-without-pitest</id>
<id>modules-jdk21-without-pitest</id>
<activation>
<jdk>[17,)</jdk>
<jdk>[21,)</jdk>
<property>
<name>!pitest</name>
</property>
Expand Down

0 comments on commit dd977b4

Please sign in to comment.