From 2e26e6f042ddc61062c8908a4e90b17fa5499157 Mon Sep 17 00:00:00 2001 From: Bixilon Date: Sun, 5 Jun 2022 22:06:06 +0200 Subject: [PATCH] ci: upload test results --- .github/workflows/maven.yml | 6 ++++++ .gitlab-ci.yml | 6 +++++- pom.xml | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3e81ba0d0..831c457a3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -22,6 +22,9 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file pom.xml + - name: Publish Test Report + if: ${{ always() }} + uses: scacap/action-surefire-report@v1 - name: Upload Linux x64 build uses: actions/upload-artifact@v2 with: @@ -39,6 +42,9 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file pom.xml + - name: Publish Test Report + if: ${{ always() }} + uses: scacap/action-surefire-report@v1 - name: Upload Windows x64 build uses: actions/upload-artifact@v2 with: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05d003d2b..3653d3aa6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,4 +17,8 @@ build: - master - merge_requests script: - - 'mvn $MAVEN_CLI_OPTS compile' + - 'mvn $MAVEN_CLI_OPTS verify' + artifacts: + reports: + junit: + - target/surefire-reports/TEST-*.xml diff --git a/pom.xml b/pom.xml index fa67a2b66..885bb19c3 100644 --- a/pom.xml +++ b/pom.xml @@ -134,6 +134,11 @@ + + org.apache.maven.plugins + maven-surefire-report-plugin + 2.22.2 +