-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WINDUP-3602 Run project's tests on JDK 11 and 17 (#112)
* 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
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
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: | ||
|
@@ -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 | ||
|
@@ -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 |
This file contains 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
This file contains 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