Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): add J16 and allow failures #3921

Merged
merged 2 commits into from
Jun 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci-build.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
jdk: ['8', '11']
include:
- os: ubuntu-latest
jdk: '15'
jdk: '16'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -26,5 +26,10 @@ jobs:
restore-keys: ${{ runner.os }}-m2
# NOTE(AR) The `-T 2C` enables multi-threaded builds below, faster, but may need to be disabled when diagnosing problems
# NOTE(DP): Reuse of build artefacts across workflows to (hopefully) limit network traffic
- name: Maven Build allow fail
if: ${{ matrix.jdk == '16' }}
run: mvn -V -B -q -T 2C -DskipTests=true "-Dmaven.javadoc.skip=true" install
continue-on-error: true
- name: Maven Build
if: ${{ matrix.jdk != '16' }}
run: mvn -V -B -q -T 2C -DskipTests=true "-Dmaven.javadoc.skip=true" install
17 changes: 13 additions & 4 deletions .github/workflows/ci-docs.yml
Expand Up @@ -2,21 +2,30 @@ name: Javadoc
on: [push, pull_request]
jobs:
test:
name: Generate Javadocs
name: ${{ matrix.jdk }} Javadocs
strategy:
matrix:
jdk: ['8','11', '16']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 8
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '8'
java-version: ${{ matrix.jdk }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven Javadoc
run: mvn -V -B -q -T 2C javadoc:javadoc
if: ${{ matrix.jdk == '8' }}
run: mvn -V -B -q -T 2C javadoc:javadoc
- name: Maven Javadoc allow fail
if: ${{ matrix.jdk != '8' }}
run: mvn -V -B -q -T 2C javadoc:javadoc
continue-on-error: true

9 changes: 7 additions & 2 deletions .github/workflows/ci-test.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
jdk: ['8', '11']
include:
- os: ubuntu-latest
jdk: '15'
jdk: '16'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -24,8 +24,13 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven Test
- name: Maven Test allow fail
if: ${{ matrix.jdk == '16' }}
run: mvn -V -B clean verify
continue-on-error: true
- name: Maven Test
if: ${{ matrix.jdk != '16' }}
run: mvn -V -B clean verify
- name: Maven Code Coverage
if: ${{ github.ref == 'refs/heads/develop' && matrix.jdk == '8' && matrix.os == 'ubuntu-latest' }}
env:
Expand Down