Fix mockserver deprecation #221
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: Build and Test | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| paths: | |
| - '.github/workflows/maven.yml' | |
| - '**/pom.xml' | |
| - 'src/**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths: | |
| - '.github/workflows/maven.yml' | |
| - '**/pom.xml' | |
| - 'src/**' | |
| # Only run the latest job | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| MVN_CMD: './mvnw -V -B -ntp' | |
| jobs: | |
| format-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Validate Formatting | |
| run: | | |
| mvn -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@v6 | |
| - name: Set up JDK's | |
| uses: actions/setup-java@v5 | |
| with: | |
| # Define Java 25 last as that is the version we want to compile with | |
| java-version: | | |
| 11 | |
| 17 | |
| 21 | |
| 26-ea | |
| 25 | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build and Test on ${{ matrix.os }} - Java 25 | |
| run: ${{ env.MVN_CMD }} clean verify | |
| - name: Build and Test on ${{ matrix.os }} - Java 26-ea | |
| run: ${{ env.MVN_CMD }} verify '-Dtest.java.home=${{env.JAVA_HOME_26_X64}}${{env.JAVA_HOME_26_ARM64}}' '-Dsurefire.reportsDirectory=target/surefire-reports-java26' | |
| - name: Build and Test on ${{ matrix.os }} - Java 21 | |
| run: ${{ env.MVN_CMD }} verify '-Dtest.java.home=${{env.JAVA_HOME_21_X64}}${{env.JAVA_HOME_21_ARM64}}' '-Dsurefire.reportsDirectory=target/surefire-reports-java21' | |
| - name: Build and Test on ${{ matrix.os }} - Java 17 | |
| run: ${{ env.MVN_CMD }} verify '-Dtest.java.home=${{env.JAVA_HOME_17_X64}}${{env.JAVA_HOME_17_ARM64}}' '-Dsurefire.reportsDirectory=target/surefire-reports-java17' | |
| - name: Build and Test on ${{ matrix.os }} - Java 11 | |
| run: ${{ env.MVN_CMD }} verify '-Dtest.java.home=${{env.JAVA_HOME_11_X64}}${{env.JAVA_HOME_11_ARM64}}' '-Dsurefire.reportsDirectory=target/surefire-reports-java11' | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: surefire-reports-${{ matrix.os }} | |
| path: '**/surefire-reports*' |