Update source files to use more modern approaches to creating instanc… #103
Workflow file for this run
This file contains hidden or 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 workflow will build a Java project with Maven | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: Pull Requests | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| # Only run the latest job | |
| concurrency: | |
| group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
| cancel-in-progress: true | |
| env: | |
| MVN_CMD: './mvnw -V -B -fae' | |
| jobs: | |
| format-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Validate Formatting | |
| run: | | |
| ./mvnw -B -ntp validate -Pformat-check | |
| build: | |
| needs: format-check | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest ] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDKs | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| java-version: | | |
| 17 | |
| 21 | |
| 25 | |
| 26 | |
| - name: Build and Test on ${{ matrix.os }} | |
| run: ${{ env.MVN_CMD }} clean install '-Djava17.home=${{env.JAVA_HOME_17_X64}}' '-Djava21.home=${{env.JAVA_HOME_21_X64}}' '-Djava25.home=${{env.JAVA_HOME_25_X64}}' | |
| - name: Upload test logs for failed run | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: failure-reports-${{ matrix.os }} | |
| path: | | |
| **/surefire-reports/** | |
| **/failsafe-reports/** | |
| **/*.log |