Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@ jobs:
with:
distribution: 'zulu'
java-version: '25'
cache: 'maven'
# Unlike setup-java's cache, falls back to an older cache when pom.xml changes (e.g. dependency update PRs).
# The year in the key starts a fresh cache yearly, dropping unused dependency versions.
- name: Get year
id: year
run: echo "year=$(date -u +%Y)" >> "$GITHUB_OUTPUT"
- name: Cache Maven repository
uses: actions/cache@v6
with:
path: |
~/.m2/repository
!~/.m2/repository/com/softwaremill/jox
key: maven-ci-${{ steps.year.outputs.year }}-${{ hashFiles('**/pom.xml') }}
restore-keys: maven-ci-${{ steps.year.outputs.year }}-
- name: Test
run: mvn --batch-mode --update-snapshots verify
- name: Prepare release notes
Expand All @@ -32,6 +44,8 @@ jobs:
fray-tests:
runs-on: ubuntu-26.04
strategy:
# Jobs that pass still save the Maven cache, which a re-run of a failed job can then use
fail-fast: false
matrix:
channel_size: [ 0, 1, 10 ]
segment_size: [ 4, 32 ]
Expand All @@ -43,7 +57,17 @@ jobs:
with:
distribution: 'zulu'
java-version: '25'
cache: 'maven'
- name: Get year
id: year
run: echo "year=$(date -u +%Y)" >> "$GITHUB_OUTPUT"
- name: Cache Maven repository
uses: actions/cache@v6
with:
path: |
~/.m2/repository
!~/.m2/repository/com/softwaremill/jox
key: maven-fray-${{ steps.year.outputs.year }}-${{ hashFiles('**/pom.xml') }}
restore-keys: maven-fray-${{ steps.year.outputs.year }}-
- name: Install current Jox # so that latest channels code is available
run: mvn install -DskipTests=true
- name: Run Fray tests (CHANNEL_SIZE=${{ matrix.channel_size }}, JOX_SEGMENT_SIZE=${{ matrix.segment_size }})
Expand Down