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/14 11:02:45 UTC
[logging-log4j2] 01/01: Add MacOS to 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 d0fe63a069fbb4918a7baf683171d1588f49bd37
Author: Volkan Yazıcı <vo...@gmail.com>
AuthorDate: Fri Aug 14 11:26:00 2020 +0200
Add MacOS to GitHub Actions.
---
.github/workflows/maven.yml | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 47c8f07..b99a32e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
- os: [ubuntu-latest, windows-latest]
+ os: [ubuntu-latest, windows-latest, macos-latest]
steps:
@@ -51,7 +51,7 @@ jobs:
uses: scacap/action-surefire-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- check_name: 'Linux Test Report'
+ check_name: 'Test Report (Linux)'
report_paths: '**/*-reports/TEST-*.xml'
- name: Inspect environment (Windows)
@@ -67,5 +67,21 @@ jobs:
uses: scacap/action-surefire-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- check_name: 'Windows Test Report'
+ check_name: 'Test Report (Windows)'
+ report_paths: '**/*-reports/TEST-*.xml'
+
+ - name: Inspect environment (MacOS)
+ if: runner.os == 'macOS'
+ run: env | grep '^JAVA'
+
+ - name: Build with Maven (MacOS)
+ 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'
+ uses: scacap/action-surefire-report@v1
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ check_name: 'Test Report (MacOS)'
report_paths: '**/*-reports/TEST-*.xml'