diff --git a/.github/workflows/pr-functional-tests.yml b/.github/workflows/pr-functional-tests.yml index e3ac3ffcd10..0cf032e3e23 100644 --- a/.github/workflows/pr-functional-tests.yml +++ b/.github/workflows/pr-functional-tests.yml @@ -30,4 +30,27 @@ jobs: java-version: ${{ matrix.java }} - name: Build with Maven - run: mvn -B verify -DskipUnitTests=true -DskipModuleFunctionalTests=true -Dtests.max-container-count=5 -DdockerfileName=Dockerfile --file extra/pom.xml + id: build + run: | + mvn -B verify \ + -DskipUnitTests=true \ + -DskipModuleFunctionalTests=true \ + -Dtests.max-container-count=5 \ + -DdockerfileName=Dockerfile \ + -Dcheckstyle.skip \ + --file extra/pom.xml + + - name: Emitting run result of functional test + if: always() + uses: dorny/test-reporter@v2.1.1 + with: + name: 'Functional tests' + working-directory: 'target/failsafe-reports' + path: 'TEST-*.xml' + reporter: java-junit + use-actions-summary: 'true' + list-suites: 'failed' + list-tests: 'failed' + fail-on-error: true + fail-on-empty: true + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-java-ci.yml b/.github/workflows/pr-java-ci.yml index a0ecdd6892f..3f68172bf32 100644 --- a/.github/workflows/pr-java-ci.yml +++ b/.github/workflows/pr-java-ci.yml @@ -32,3 +32,14 @@ jobs: - name: Build with Maven run: mvn -B package --file extra/pom.xml + + - name: Publish JUnit Report + uses: mikepenz/action-junit-report@v5 + with: + report_paths: '**/target/surefire-reports/TEST-*.xml' + check_name: 'JUnit Test Report' + include_passed: true + comment: true + fail_on_failure: true + updateComment: true + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-module-functional-tests.yml b/.github/workflows/pr-module-functional-tests.yml index d87fbe4857a..e61814093b0 100644 --- a/.github/workflows/pr-module-functional-tests.yml +++ b/.github/workflows/pr-module-functional-tests.yml @@ -30,7 +30,31 @@ jobs: java-version: ${{ matrix.java }} - name: Build with Maven - run: mvn package -DskipUnitTests=true --file extra/pom.xml + run: mvn package -Dcheckstyle.skip -DskipUnitTests=true --file extra/pom.xml - name: Run module tests - run: mvn -B verify -DskipUnitTests=true -DskipFunctionalTests=true -DskipModuleFunctionalTests=false -Dtests.max-container-count=5 -DdockerfileName=Dockerfile-modules --file extra/pom.xml + id: build + run: | + mvn -B verify \ + -DskipUnitTests=true \ + -DskipFunctionalTests=true \ + -DskipModuleFunctionalTests=false \ + -Dtests.max-container-count=5 \ + -DdockerfileName=Dockerfile-modules \ + -Dcheckstyle.skip \ + --file extra/pom.xml + + - name: Emitting run result of functional test + if: always() + uses: dorny/test-reporter@v2.1.1 + with: + name: 'Module functional tests' + working-directory: 'target/failsafe-reports' + path: 'TEST-*.xml' + reporter: java-junit + use-actions-summary: 'true' + list-suites: 'failed' + list-tests: 'failed' + fail-on-error: true + fail-on-empty: true + token: ${{ secrets.GITHUB_TOKEN }}