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

drazzib pushed a commit to branch GORA-674-upgrade-testcontainers
in repository https://gitbox.apache.org/repos/asf/gora.git


The following commit(s) were added to 
refs/heads/GORA-674-upgrade-testcontainers by this push:
     new 863e060  Github actions: Capture surefire reports
863e060 is described below

commit 863e060041d22d88241dc5c7d8a85f75a2e82b81
Author: Damien Raude-Morvan <damien.raude-mor...@verteego.com>
AuthorDate: Mon Apr 5 22:10:51 2021 +0200

    Github actions: Capture surefire reports
---
 .github/workflows/master-pr-build.yml   | 21 +++++++++++++++++++--
 .github/workflows/master-push-build.yml | 21 +++++++++++++++++++--
 2 files changed, 38 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/master-pr-build.yml 
b/.github/workflows/master-pr-build.yml
index 5ab3b17..fad4420 100644
--- a/.github/workflows/master-pr-build.yml
+++ b/.github/workflows/master-pr-build.yml
@@ -32,7 +32,17 @@ jobs:
       matrix:
         java: [ '1.8' ]
     steps:
-      - uses: actions/checkout@v2
+      - name: Checkout repository
+        uses: actions/checkout@v2
+
+      - name: Setup Maven caching
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
+
       - name: Set up JDK ${{ matrix.java }}
         uses: actions/setup-java@v1
         with:
@@ -42,4 +52,11 @@ jobs:
         run: mvn $MAVEN_CLI_OPTS -DskipTests clean install
 
       - name: Test
-        run: mvn $MAVEN_CLI_OPTS verify
\ No newline at end of file
+        run: mvn $MAVEN_CLI_OPTS -Dmaven.test.failure.ignore=true verify
+
+      - name: Publish Test Results
+        uses: scacap/action-surefire-report@v1
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          check_name: Test Report (${{ matrix.java }})
+          report_paths: '**/*-reports/TEST-*.xml'
\ No newline at end of file
diff --git a/.github/workflows/master-push-build.yml 
b/.github/workflows/master-push-build.yml
index 517f455..303d012 100644
--- a/.github/workflows/master-push-build.yml
+++ b/.github/workflows/master-push-build.yml
@@ -32,7 +32,17 @@ jobs:
       matrix:
         java: [ '1.8' ]
     steps:
-      - uses: actions/checkout@v2
+      - name: Checkout repository
+        uses: actions/checkout@v2
+
+      - name: Setup Maven caching
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
+
       - name: Set up JDK ${{ matrix.java }}
         uses: actions/setup-java@v1
         with:
@@ -42,4 +52,11 @@ jobs:
         run: mvn $MAVEN_CLI_OPTS -DskipTests clean install
 
       - name: Test
-        run: mvn $MAVEN_CLI_OPTS verify
\ No newline at end of file
+        run: mvn $MAVEN_CLI_OPTS -Dmaven.test.failure.ignore=true verify
+
+      - name: Publish Test Results
+        uses: scacap/action-surefire-report@v1
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          check_name: Test Report (${{ matrix.java }})
+          report_paths: '**/*-reports/TEST-*.xml'
\ No newline at end of file

Reply via email to