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/11/06 12:44:50 UTC
[logging-log4j2] 02/07: Upload test reports in GitHub Actions.
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit f5d8780ef641a6ae61280ef3978d3bb9be922614
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 5647d10..5bdb2f7 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'