[maven-release-plugin] rollback the release of 5.1.3.Final #215
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
# | |
# Copyright 2016-2024 Red Hat, Inc. and/or its affiliates | |
# and other contributors as indicated by the @author tags. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
name: Galleon - CI | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
build: | |
name: ${{ matrix.os }}-jdk${{ matrix.java }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest ] | |
java: ['11', '21'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 21 and JDK 11 for JDK21 execution | |
if: matrix.java == 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: | | |
21 | |
11 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Set up JDK ${{ matrix.java }} | |
if: matrix.java != 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
# For JDK 21 tests, build with 11, skipping tests | |
- name: Build with JDK 11 for JDK 21 tests | |
if: matrix.java == 21 | |
run: JAVA_HOME=$JAVA_HOME_11_${{ runner.arch }} mvn clean install -DskipTests | |
shell: bash | |
# For JDK 21 tests, we already built, so just run the 'test' goal with the -DnoCompile setting to disable recompile | |
- name: Test with -DnoCompile for JDK 21 tests | |
if: matrix.java == 21 | |
run: JAVA_HOME=$JAVA_HOME_${{ matrix.java }}_${{ runner.arch }} mvn test -DnoCompile | |
shell: bash | |
- name: Build and Test on ${{ matrix.java }} | |
if: matrix.java != 21 | |
run: mvn clean install | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }} | |
path: | | |
**/surefire-reports/*.txt |