Skip to content

Commit

Permalink
WINDUP-3602 Run project's tests on JDK 11 and 17 (#112)
Browse files Browse the repository at this point in the history
* WINDUP-3602 Run project's tests on JDK 11 and 17

* WINDUP-3602 Setup Maven 3.8.7 and 'SET' command on Windows

* WINDUP-3602 Set Maven version earlier

* WINDUP-3602 Adopted shell 'bash'
  • Loading branch information
mrizzi authored Mar 20, 2023
1 parent a2177a1 commit 1ee45ae
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/pr-build-jdk11.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Windup Quickstarts PR builder for JDK11
name: Windup Quickstarts PR builder

on:
pull_request:
Expand All @@ -13,6 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: [ 11, 17 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout windup repo
Expand Down Expand Up @@ -50,5 +51,21 @@ jobs:
run: mvn -B clean install -DskipTests -f windup-rulesets
- name: Build Windup Maven Plugin on JDK 11
run: mvn -B clean install -DskipTests -f windup-maven-plugin
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.7
- name: Build on JDK 11
run: mvn -B clean install -s ./windup-quickstarts/settings.xml -DskipTests -f windup-quickstarts && mvn -B clean install -s ./windup-quickstarts/settings.xml -f windup-quickstarts
run: mvn -B clean install -s ./windup-quickstarts/settings.xml -DskipTests -f windup-quickstarts
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
java-package: jdk
cache: 'maven'
- name: Test
run: |
export MAVEN_OPTS="--add-modules=java.se --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.stream=ALL-UNNAMED"
mvn -B clean install -s ./windup-quickstarts/settings.xml -f windup-quickstarts
shell: bash
4 changes: 2 additions & 2 deletions ejb-beanutils-async/rules-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<version>3.0.0</version>
<configuration>
<argLine>-Xms512m -Xmx2048m -XX:MaxPermSize=768m -XX:ReservedCodeCacheSize=128m</argLine>
<argLine>-Xms512m -Xmx2048m --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
<reuseForks>false</reuseForks>
</configuration>
</plugin>
Expand Down
8 changes: 8 additions & 0 deletions proprietary-javaee-servlet/rules-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 1ee45ae

Please sign in to comment.