From fe8fa86b61f3e4ddd06f95778dacda9dd42729fc Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Thu, 12 Oct 2023 11:52:49 -0400 Subject: [PATCH] Change directory of failsafe and surefire reports when not on GitHub actions (#1478) Co-authored-by: Ryan Baxter <524254+ryanjbaxter@users.noreply.github.com> --- .../action.yaml | 3 ++- pom.xml | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml b/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml index ce2242c3..c8165555 100644 --- a/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml +++ b/.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml @@ -149,7 +149,8 @@ runs: ./mvnw -s .settings.xml \ -DtestsToRun=${tests_to_run_in_current_index} \ - -DCURRENT_INSTANCE=${CURRENT_INDEX} \ + -Dsurefire-reports-directory=surefire-reports/${CURRENT_INDEX} \ + -Dfailsafe-reports-directory=failsafe-reports/${CURRENT_INDEX} \ -e clean install \ -P sonar -nsu --batch-mode \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ diff --git a/pom.xml b/pom.xml index 271e4616..42d1b061 100644 --- a/pom.xml +++ b/pom.xml @@ -65,8 +65,9 @@ - - one + + surefire-reports + failsafe-reports 4.8.1 4.0.5-SNAPSHOT @@ -208,7 +209,7 @@ ${testsToRun} - ${project.build.directory}/surefire-reports/${CURRENT_INSTANCE} + ${project.build.directory}/${surefire-reports-directory} @@ -216,7 +217,7 @@ org.apache.maven.plugins maven-failsafe-plugin - ${project.build.directory}/failsafe-reports/${CURRENT_INSTANCE} + ${project.build.directory}/${failsafe-reports-directory}