Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Jul 24, 2024
1 parent 0d771ba commit 24784b0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,6 @@ on:
- main

jobs:
jdk17:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: JDK 17 Tests
run: mvn -B clean install artifact:compare -Dmaven.test.failure.ignore=true -Dansi.strip=true

- name: Test Logs
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: jdk17-test-results
path: "**/target/*-reports*/**/TEST-*.xml"

jdk21:
runs-on: ubuntu-latest
steps:
Expand Down
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,31 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${version.enforcer.plugin}</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[${maven.compiler.target},)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.6.0,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<modules>
Expand Down

0 comments on commit 24784b0

Please sign in to comment.