Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix #1079: Use isEmpty() instead of size() == 0 #158

Fix #1079: Use isEmpty() instead of size() == 0

Fix #1079: Use isEmpty() instead of size() == 0 #158

Workflow file for this run

name: PR Build
on:
push:
branches:
- '!master'
pull_request:
branches:
- master
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
testopenjdk:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Linux and Windows only (MacOS is quite close to Linux, so less of a risk)
os: [ubuntu-latest, windows-latest]
java: [17, 21]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: ${{ matrix.java }}
- name: Build, test and integration test
run: mvn verify --no-transfer-progress
# Note that 11 is not available in openjdk. So we need to do it with the Zulu distribution (see https://github.com/actions/setup-java)
# When we drop 11, it will be safe to drop the copy-pasted workflow excerpt below
testzulu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# We do one OS only to reduce resource utilization. To do macOS to this would be needed:
#os: [ubuntu-20.04, macOS-latest]
os: [ubuntu-latest]
java: [11]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build, test and integration test
run: mvn verify --no-transfer-progress
Morty Proxy This is a proxified and sanitized view of the page, visit original site.