From ee39336be270e06901186582377ab3f7e89d12cc Mon Sep 17 00:00:00 2001 From: Jeremy Norris Date: Mon, 18 Dec 2023 13:58:35 -0600 Subject: [PATCH] Adjust maven workflow to split unit & integrations into separate steps so that they can be executed via direct mojo calls and thus avoiding potentially reexecuting prior phases. --- .github/workflows/maven.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 382f52d1..b67de70d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,7 +34,7 @@ jobs: java-version: '21' check-latest: true - name: Build with Maven - run: ./mvnw -B -V -e -DskipTests=true package + run: ./mvnw -B -V -e -DskipTests=true verify - uses: actions/upload-artifact@v3 with: name: java-${{ matrix.java }}-jars @@ -48,8 +48,10 @@ jobs: distribution: 'zulu' java-version: ${{ matrix.java }} check-latest: true - - name: Test with Maven - run: ./mvnw -B -V -e -P coverage verify -Denforcer.skip=true -Dmaven.resources.skip=true -Dmaven.main.skip=true -Dassembly.skipAssembly=true -Dmaven.javadoc.skip=true -DskipITs=false + - name: Unit Tests with Maven + run: ./mvnw -B -V -e jacoco:prepare-agent surefire:test jacoco:report + - name: Integration Tests with Maven + run: ./mvnw -B -V -e -DskipITs=false jacoco:prepare-agent-integration failsafe:integration-test failsafe:verify jacoco:report-integration - uses: actions/upload-artifact@v3 with: name: java-${{ matrix.java }}-testresults