Minor updates to ComparableNumbers based on PR feedback. #517
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
name: Java Build | |
permissions: {} | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main", "release-*"] | |
concurrency: | |
group: java-build-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04 ] | |
java: [ "8", "11", "17", "21"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Verify with Maven | |
run: mvn --batch-mode --errors --update-snapshots verify | |
- name: Run benchmarks | |
run: mvn test '-Dtest=Benchmarks#CL2*' | |
- name: Run JMH benchmarks | |
run: mvn exec:exec@run-jmh-benchmarks |