diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-verify.yml similarity index 54% rename from .github/workflows/maven.yml rename to .github/workflows/maven-verify.yml index 5b327724..bfe0ef14 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven-verify.yml @@ -15,36 +15,21 @@ # specific language governing permissions and limitations # under the License. -name: Java CI +name: Verify -on: [ push, pull_request ] +on: + push: + pull_request: jobs: build: + name: Verify + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4 + with: + maven4-enabled: true + jdk-distribution-matrix: '[ "temurin", "semeru"]' + matrix-exclude: ' + [ + {"jdk": "8"} + ]' - strategy: - matrix: - os: [ ubuntu-latest, windows-latest, macOS-latest ] - java: [ 11, 17, 21 ] - dist: [ 'temurin', 'semeru' ] - exclude: - - os: macos-latest - dist: 'semeru' - - fail-fast: false - - runs-on: ${{ matrix.os }} - - steps: - - name: Checkout - uses: actions/checkout@v6 - - - name: Set up JDK - uses: actions/setup-java@v5 - with: - distribution: ${{ matrix.dist }} - java-version: ${{ matrix.java }} - cache: 'maven' - - - name: Build with Maven - run: mvn verify --errors --batch-mode --show-version -Prun-its