Skip to content

Commit

Permalink
Update JDK versions, and test compatibility on JDK 11
Browse files Browse the repository at this point in the history
  • Loading branch information
cushon authored May 10, 2023
1 parent 5da8e9a commit 020a541
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
java: [ 19, 17, 11 ]
java: [ 20, 17, 11 ]
experimental: [ false ]
# Only test on macos and windows with a single recent JDK to avoid a
# combinatorial explosion of test configurations.
# Most OS-specific issues are not specific to a particular JDK version.
include:
- os: macos-latest
java: 19
experimental: false
java: 20
- os: windows-latest
java: 19
experimental: false
java: 20
- os: ubuntu-latest
java: 20-ea
experimental: true
java: 20
- os: ubuntu-latest
java: 21-ea
experimental: true
Expand All @@ -45,7 +42,7 @@ jobs:
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
java-version: 11 | ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: 'Install'
Expand All @@ -54,6 +51,10 @@ jobs:
- name: 'Test'
shell: bash
run: mvn test -B
- name: 'Test compatibility with JDK 11'
if: ${{ matrix.java == 17 }}
shell: bash
run: mvn test -B -Dsurefire.jdk-toolchain-version=11
- name: 'Javadoc'
# only generate javadoc on JDKs with the fix for https://bugs.openjdk.org/browse/JDK-8241780
if: ${{ matrix.java >= 15 }}
Expand All @@ -68,10 +69,10 @@ jobs:
steps:
- name: 'Check out repository'
uses: actions/checkout@v2
- name: 'Set up JDK 11'
- name: 'Set up JDK 17'
uses: actions/setup-java@v2
with:
java-version: 11
java-version: 17
distribution: 'zulu'
cache: 'maven'
server-id: ossrh
Expand All @@ -81,7 +82,7 @@ jobs:
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
run: mvn source:jar deploy -B -DskipTests=true -Dinvoker.skip=true -Dmaven.javadoc.skip=true
run: mvn source:jar deploy -B -DskipTests=true -Dinvoker.skip=true

generate_docs:
name: 'Generate latest docs'
Expand All @@ -91,10 +92,10 @@ jobs:
steps:
- name: 'Check out repository'
uses: actions/checkout@v2
- name: 'Set up JDK 15'
- name: 'Set up JDK 17'
uses: actions/setup-java@v2
with:
java-version: 15
java-version: 17
distribution: 'zulu'
cache: 'maven'
- name: 'Generate latest docs'
Expand Down

0 comments on commit 020a541

Please sign in to comment.