You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2020/07/29 22:27:22 UTC

[logging-log4j2] branch master updated: Enable test annotations in github actions

This is an automated email from the ASF dual-hosted git repository.

mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/master by this push:
     new 42525cf  Enable test annotations in github actions
42525cf is described below

commit 42525cff731d8c884e07b5ee38d79fe41531a553
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Wed Jul 29 17:26:32 2020 -0500

    Enable test annotations in github actions
    
    This should hopefully provide better context about test results for PRs
    and such in the GitHub Checks API.
---
 .github/workflows/maven.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index d6338a6..0173281 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -44,7 +44,7 @@ jobs:
 
       - name: Build with Maven (Linux)
         if: runner.os == 'Linux'
-        run: ./mvnw -V -B -e -DtrimStackTrace=false verify --global-toolchains .github/workflows/maven-toolchains.xml
+        run: ./mvnw -V -B -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true verify --global-toolchains .github/workflows/maven-toolchains.xml
 
       - name: Inspect environment (Windows)
         if: runner.os == 'Windows'
@@ -52,4 +52,9 @@ jobs:
 
       - name: Build with Maven (Windows)
         if: runner.os == 'Windows'
-        run: ./mvnw -V -B -e -DtrimStackTrace=false verify --global-toolchains ".github\workflows\maven-toolchains.xml"
+        run: ./mvnw -V -B -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true verify --global-toolchains ".github\workflows\maven-toolchains.xml"
+
+      - name: Publish Test Results
+        uses: scacap/action-surefire-report@v1
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}