From 83e645c8f190c4ca4a7ca5acab740f87d5104886 Mon Sep 17 00:00:00 2001 From: Jose Bolina Date: Sun, 14 Jan 2024 10:59:45 -0300 Subject: [PATCH] Update GH action --- .github/workflows/maven.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 18ad64b6..109792a9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,12 +27,18 @@ jobs: distribution: temurin cache: maven - name: Build with Maven + id: test_runner run: mvn -B package --file pom.xml -Dgroups=functional + continue-on-error: true - - name: Generate and upload test reports + - name: Generate test reports # Only generate and upload reports if tests failed. if: failure() run: mvn -B surefire-report:report-only + + # Only run upload if tests failed. + - name: Generate and upload test reports + if: steps.test_runner.outputs.status == 'failure' uses: actions/upload-artifact@v4 with: name: Test reports