-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Matrix based CI builds for JPro Platform (#44)
* Configure a matrix-based CI build that iterates over multiple platforms and Java versions * Fix `CommandRunner` test for Windows platform * Bind server port in local server implementation only when needed and not when the server is created * Replace string concatenation with text blocks in AuthenticationServer tests * Normalize line endings depending on the platform after reading the resource content * Correct `javadoc` encoding for `jpro-mdfx` module * Update changelog * Run CI builds for Java versions `17` and `21` LTS and the latest `23`
- Loading branch information
Showing
9 changed files
with
126 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
builds: | ||
name: '${{ matrix.os }} with Java ${{ matrix.jdk }}' | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
jdk: [17, 21, 23] | ||
os: [ubuntu-latest, windows-latest] #, macos-13] | ||
fail-fast: false | ||
max-parallel: 6 | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java ${{ matrix.jdk }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.jdk }} | ||
|
||
- name: Compile | ||
run: | | ||
./gradlew jar | ||
./gradlew example:jar | ||
- name: Test | ||
run: | | ||
if [[ "$RUNNER_OS" == "Linux" ]]; then | ||
export DISPLAY=:99.0 && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16; | ||
fi | ||
./gradlew -DciTest=true test | ||
shell: bash | ||
|
||
- name: Javadoc | ||
run: | | ||
./gradlew javadoc |
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
plugins { | ||
id 'org.javamodularity.moduleplugin' version "$MODULE_PLUGIN_VERSION" | ||
id 'org.javamodularity.moduleplugin' version "$MODULE_PLUGIN_VERSION" | ||
} | ||
|
||
dependencies { | ||
implementation project(':jpro-youtube') | ||
implementation "com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:$FLEXMARK_VERSION" | ||
implementation "com.vladsch.flexmark:flexmark-ext-gfm-tasklist:$FLEXMARK_VERSION" | ||
implementation "com.vladsch.flexmark:flexmark-ext-tables:$FLEXMARK_VERSION" | ||
implementation "com.vladsch.flexmark:flexmark-ext-attributes:$FLEXMARK_VERSION" | ||
implementation project(':jpro-youtube') | ||
implementation "com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:$FLEXMARK_VERSION" | ||
implementation "com.vladsch.flexmark:flexmark-ext-gfm-tasklist:$FLEXMARK_VERSION" | ||
implementation "com.vladsch.flexmark:flexmark-ext-tables:$FLEXMARK_VERSION" | ||
implementation "com.vladsch.flexmark:flexmark-ext-attributes:$FLEXMARK_VERSION" | ||
} | ||
|
||
javadoc { | ||
options { | ||
encoding = 'UTF-8' | ||
version = true | ||
author = true | ||
// addStringOption('Xdoclint:none', '-quiet') | ||
} | ||
} |