You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2020/08/26 12:35:32 UTC

[logging-log4j2] branch release-2.x updated: Upload test reports in GitHub Actions.

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

vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new f2c311e  Upload test reports in GitHub Actions.
f2c311e is described below

commit f2c311e691cbe468f0e27837b44e4ebc690256e5
Author: Volkan Yazıcı <vo...@gmail.com>
AuthorDate: Wed Aug 26 14:34:31 2020 +0200

    Upload test reports in GitHub Actions.
---
 .github/workflows/maven.yml | 27 ++++++++-------------------
 1 file changed, 8 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index b99a32e..325cf63 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -46,14 +46,6 @@ jobs:
         if: runner.os == 'Linux'
         run: ./mvnw -V -B -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true -Dsurefire.rerunFailingTestsCount=1 --global-toolchains .github/workflows/maven-toolchains.xml verify
 
-      - name: Publish Test Results (Linux)
-        if: runner.os == 'Linux'
-        uses: scacap/action-surefire-report@v1
-        with:
-          github_token: ${{ secrets.GITHUB_TOKEN }}
-          check_name: 'Test Report (Linux)'
-          report_paths: '**/*-reports/TEST-*.xml'
-
       - name: Inspect environment (Windows)
         if: runner.os == 'Windows'
         run: set java
@@ -62,14 +54,6 @@ jobs:
         if: runner.os == 'Windows'
         run: ./mvnw -V -B -e -DtrimStackTrace=false "-Dmaven.test.failure.ignore=true" "-Dsurefire.rerunFailingTestsCount=1" --global-toolchains ".github\workflows\maven-toolchains.xml" verify
 
-      - name: Publish Test Results (Windows)
-        if: runner.os == 'Windows'
-        uses: scacap/action-surefire-report@v1
-        with:
-          github_token: ${{ secrets.GITHUB_TOKEN }}
-          check_name: 'Test Report (Windows)'
-          report_paths: '**/*-reports/TEST-*.xml'
-
       - name: Inspect environment (MacOS)
         if: runner.os == 'macOS'
         run: env | grep '^JAVA'
@@ -78,10 +62,15 @@ jobs:
         if: runner.os == 'macOS'
         run: ./mvnw -V -B -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true -Dsurefire.rerunFailingTestsCount=1 --global-toolchains .github/workflows/maven-toolchains.xml verify
 
-      - name: Publish Test Results (MacOS)
-        if: runner.os == 'macOS'
+      - name: Publish Test Results
         uses: scacap/action-surefire-report@v1
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
-          check_name: 'Test Report (MacOS)'
+          check_name: Test Report (${{ matrix.os }})
           report_paths: '**/*-reports/TEST-*.xml'
+
+      - name: Upload Test Reports
+        uses: actions/upload-artifact@v2
+        with:
+          name: test-reports-${{ matrix.os }}
+          path: '**/*-reports'