Skip to content

[issues-301] - Add a GitHub workflow to run integration tests against the default WildFly version #11

[issues-301] - Add a GitHub workflow to run integration tests against the default WildFly version

[issues-301] - Add a GitHub workflow to run integration tests against the default WildFly version #11

name: WildFly Integration Tests
on:
push:
pull_request:
branches: [ 'master' ]
jobs:
wildfly-it-tests:
env:
MVN_ARGS: ''
if: '! github.event.pull_request.draft'
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
java-version: ['17', '21']
java-distribution: ['adopt']
steps:
- name: Exclude tests that require Docker (on Windows runners ATM)
if: ${{ matrix.os == 'windows-latest' }}
run: echo 'MVN_ARGS="-Dcurrent-execution.excluded-groups=org.jboss.eap.qe.ts.common.docker.junit.DockerRequiredTests"' >> $GITHUB_ENV
- name: Checkout eap-microprofile-test-suite
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-distribution }} ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.java-distribution }}
cache: 'maven'
- name: Build and run integration tests (${{ matrix.java-distribution }} ${{ matrix.java-version }}) against latest WildFly, on ${{ matrix.os }}
run: |
./mvnw clean verify --batch-mode --fail-at-end -Dmaven.test.failure.ignore=true $MVN_ARGS
- uses: actions/upload-artifact@v3
if: failure()
with:
name: surefire-reports-jdk-${{ matrix.java-distribution }}-${{ matrix.java-version }}
path: |
'${{ github.workspace }}/**/surefire-reports/*.*'
'${{ github.workspace }}/**/*.log'