Skip to content

Merge pull request #17232 from bstansberry/WFLY-18563 #5

Merge pull request #17232 from bstansberry/WFLY-18563

Merge pull request #17232 from bstansberry/WFLY-18563 #5

Workflow file for this run

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'