Skip to content

Commit

Permalink
Merge pull request #1242 from carldea/main
Browse files Browse the repository at this point in the history
Using TCK Tested JDK builds of OpenJDK
  • Loading branch information
bitwiseman authored Oct 5, 2021
2 parents 0567b4e + 691e0fc commit 0b8c6e3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 16 ]
java: [ 16, 17 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: 'zulu'
- name: Cached .m2
uses: actions/[email protected]
with:
Expand All @@ -39,14 +39,14 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu, windows ]
java: [ 8, 11, 16 ]
java: [ 8.0.192, 8, 11.0.3, 11, 16, 17 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: 'zulu'
- uses: actions/[email protected]
with:
path: ~/.m2/repository
Expand All @@ -55,22 +55,22 @@ jobs:
${{ runner.os }}-maven-
# JDK 8
- name: Maven Install without Code Coverage
if: matrix.os == 'windows' && matrix.java == '8'
if: matrix.os == 'windows' && startsWith(matrix.java, '8')
run: mvn -B clean install --file pom.xml
- name: Maven Install with Code Coverage
if: matrix.os != 'windows' && matrix.java == '8'
if: matrix.os != 'windows' && startsWith(matrix.java, '8')
run: mvn -B clean install -D enable-ci --file pom.xml
- name: Codecov Report
if: matrix.os != 'windows' && matrix.java == '8'
if: matrix.os != 'windows' && startsWith(matrix.java, '8')
uses: codecov/[email protected]
# JDK 11+
- name: Maven Install without Code Coverage
if: matrix.os == 'windows' && matrix.java != '8'
if: matrix.os == 'windows' && !startsWith(matrix.java, '8')
env:
MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
run: mvn -B clean install --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"
- name: Maven Install with Code Coverage
if: matrix.os != 'windows' && matrix.java != '8'
if: matrix.os != 'windows' && !startsWith(matrix.java, '8')
env:
MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
run: mvn -B clean install -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"

0 comments on commit 0b8c6e3

Please sign in to comment.