Merge pull request #17067 from pferraro/WFLY-18233 #1
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: WildFly JRE build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
wildfly-jre-build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: ['11', '17', '21-ea'] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup JRE ${{ matrix.java }} for building | |
id: setup-java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
java-package: 'jre' | |
- name: Set the JRE Home | |
id: jre-home | |
run: | | |
echo "JRE_HOME=$JAVA_HOME" >> "$GITHUB_OUTPUT" | |
- name: Setup JDK ${{ matrix.java }} for building | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'maven' | |
- name: Build and verify WildFly with JRE ${{ matrix.java }} | |
run: | | |
mvn -B clean install -DskipTests -Denforcer.skip=true -Dcheckstyle.skip=true | |
cd testsuite | |
echo "Running: mvn -B verify -Dcontainer.java.home=${{ steps.jre-home.outputs.JRE_HOME }} -fae" | |
mvn -B verify -Dcontainer.java.home=${{ steps.jre-home.outputs.JRE_HOME }} -fae | |
- name: Upload Surefire Reports on Failure | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: surefire-reports-${{ matrix.java }} | |
path: '**/surefire-reports/' | |
- name: Upload Server Logs on Failure | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: server-logs-${{ matrix.java }} | |
path: '**/server.log' |