Skip to content

Commit

Permalink
Surefire and Maven updates
Browse files Browse the repository at this point in the history
- show version of maven in github actions
- Update setup-java
- add surefire back to pom
  (not declaring a version will make an old maven use an old version of surefire, which will not find the JUnit 5 tests)
  • Loading branch information
asturio committed Dec 3, 2023
1 parent 91411e9 commit c04a5f2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ jobs:
java: [ 8, 11, 17 ]
name: Java ${{matrix.java}}
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
cache: maven
- name: Check maven version
run: mvn -v
- name: Build with Maven
run: mvn -B verify --file pom.xml -Dgpg.skip
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<pitest-junit5-plugin.version>1.2.1</pitest-junit5-plugin.version>
<pitmp-maven-plugin.version>1.3.7</pitmp-maven-plugin.version>
<maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>

<!-- dependencies -->
<bouncycastle.version>1.77</bouncycastle.version>
Expand Down Expand Up @@ -380,6 +381,17 @@
<historyOutputFile>${project.build.directory}/pitest</historyOutputFile>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit c04a5f2

Please sign in to comment.