Skip to content

Test: Update pr-java/functional-ci work flow #2158

Test: Update pr-java/functional-ci work flow

Test: Update pr-java/functional-ci work flow #2158

name: Module functional tests
on:
pull_request:
paths-ignore:
- 'docs/**'
- '.github/**'
branches:
- master
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 21 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
cache: 'maven'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn package -Dcheckstyle.skip -DskipUnitTests=true --file extra/pom.xml
- name: Run module tests
id: build
run: |
set +e
mvn -B verify \
-DskipUnitTests=true \
-DskipFunctionalTests=true \
-DskipModuleFunctionalTests=false \
-Dtests.max-container-count=5 \
-DdockerfileName=Dockerfile-modules \
-Dcheckstyle.skip \
--file extra/pom.xml | tee build_output.txt
result=${PIPESTATUS[0]}
echo "exit_code=$result" >> "$GITHUB_OUTPUT"
- name: Format build output for PR comment
if: always()
uses: dorny/test-reporter@v2
with:
name: Functional Tests
path: '**/target/failsafe-reports/TEST-*.xml'
reporter: java-junit
fail-on-error: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fail if functional tests failed
if: steps.build.outputs.exit_code != '0'
run: exit 1