From 25a73371a0bd34896847a57ef75965c5e59c186a Mon Sep 17 00:00:00 2001 From: optimizing-ci-builds <108610715+optimizing-ci-builds@users.noreply.github.com> Date: Thu, 16 Mar 2023 00:29:10 -0400 Subject: [PATCH] ignoring unnecessarily generated surefire report In our analysis, we observe that this target/surefire-report/ directory is generated but not later used during the CI build. Hence, we propose to disable generating this directory to save runtime. The generation of this directory can be disabled by simply adding -DdisableXmlReport=true to the mvn command. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32c0b3f5f46..0fd0b133f0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: java-version: ${{ matrix.java_version }} - name: Build and test Java ${{ matrix.java_version }} run: | - mvn -B clean test -PJava${{ matrix.java_version }} + mvn -B clean test -PJava${{ matrix.java_version }} -DdisableXmlReport=true DeployArtifacts: