Skip to content

Commit fb5adaf

Browse files
authored
Test: Update pr-java/functional-ci work flow (#3904)
1 parent 871d16d commit fb5adaf

File tree

3 files changed

+61
-3
lines changed

3 files changed

+61
-3
lines changed

.github/workflows/pr-functional-tests.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,27 @@ jobs:
3030
java-version: ${{ matrix.java }}
3131

3232
- name: Build with Maven
33-
run: mvn -B verify -DskipUnitTests=true -DskipModuleFunctionalTests=true -Dtests.max-container-count=5 -DdockerfileName=Dockerfile --file extra/pom.xml
33+
id: build
34+
run: |
35+
mvn -B verify \
36+
-DskipUnitTests=true \
37+
-DskipModuleFunctionalTests=true \
38+
-Dtests.max-container-count=5 \
39+
-DdockerfileName=Dockerfile \
40+
-Dcheckstyle.skip \
41+
--file extra/pom.xml
42+
43+
- name: Emitting run result of functional test
44+
if: always()
45+
uses: dorny/test-reporter@v2.1.1
46+
with:
47+
name: 'Functional tests'
48+
working-directory: 'target/failsafe-reports'
49+
path: 'TEST-*.xml'
50+
reporter: java-junit
51+
use-actions-summary: 'true'
52+
list-suites: 'failed'
53+
list-tests: 'failed'
54+
fail-on-error: true
55+
fail-on-empty: true
56+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-java-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,14 @@ jobs:
3232

3333
- name: Build with Maven
3434
run: mvn -B package --file extra/pom.xml
35+
36+
- name: Publish JUnit Report
37+
uses: mikepenz/action-junit-report@v5
38+
with:
39+
report_paths: '**/target/surefire-reports/TEST-*.xml'
40+
check_name: 'JUnit Test Report'
41+
include_passed: true
42+
comment: true
43+
fail_on_failure: true
44+
updateComment: true
45+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-module-functional-tests.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,31 @@ jobs:
3030
java-version: ${{ matrix.java }}
3131

3232
- name: Build with Maven
33-
run: mvn package -DskipUnitTests=true --file extra/pom.xml
33+
run: mvn package -Dcheckstyle.skip -DskipUnitTests=true --file extra/pom.xml
3434

3535
- name: Run module tests
36-
run: mvn -B verify -DskipUnitTests=true -DskipFunctionalTests=true -DskipModuleFunctionalTests=false -Dtests.max-container-count=5 -DdockerfileName=Dockerfile-modules --file extra/pom.xml
36+
id: build
37+
run: |
38+
mvn -B verify \
39+
-DskipUnitTests=true \
40+
-DskipFunctionalTests=true \
41+
-DskipModuleFunctionalTests=false \
42+
-Dtests.max-container-count=5 \
43+
-DdockerfileName=Dockerfile-modules \
44+
-Dcheckstyle.skip \
45+
--file extra/pom.xml
46+
47+
- name: Emitting run result of functional test
48+
if: always()
49+
uses: dorny/test-reporter@v2.1.1
50+
with:
51+
name: 'Module functional tests'
52+
working-directory: 'target/failsafe-reports'
53+
path: 'TEST-*.xml'
54+
reporter: java-junit
55+
use-actions-summary: 'true'
56+
list-suites: 'failed'
57+
list-tests: 'failed'
58+
fail-on-error: true
59+
fail-on-empty: true
60+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)