-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from dmlloyd/java-11
Require Java 11 to build
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 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 |
---|---|---|
|
@@ -19,22 +19,24 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [8, 11] | ||
name: build with jdk ${{matrix.java}} | ||
name: build with JDK 11 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: checkout | ||
|
||
- uses: actions/[email protected] | ||
name: set up jdk ${{matrix.java}} | ||
name: set up JDK 11 | ||
with: | ||
java-version: ${{matrix.java}} | ||
java-version: 11 | ||
|
||
- uses: actions/[email protected] | ||
name: set up JDK 8 | ||
with: | ||
java-version: 8 | ||
|
||
- name: build with maven | ||
run: mvn -B formatter:validate verify --file pom.xml | ||
run: JAVA_HOME=$JAVA_HOME_11_X64 mvn -B formatter:validate verify --file pom.xml -Djava8.home=$JAVA_HOME_8_X64 | ||
|
||
quality: | ||
needs: [build] | ||
|
@@ -46,7 +48,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
java-version: 8 | ||
java-version: 11 | ||
|
||
- name: sonar | ||
env: | ||
|
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
|
||
- uses: actions/[email protected] | ||
with: | ||
java-version: 8 | ||
java-version: 11 | ||
|
||
- name: maven release ${{steps.metadata.outputs.current-version}} | ||
run: | | ||
|
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