Skip to content

Commit

Permalink
Adjust maven workflow to split unit & integrations into separate step…
Browse files Browse the repository at this point in the history
…s so that they can be executed via direct mojo calls and thus avoiding potentially reexecuting prior phases.
  • Loading branch information
norrisjeremy committed Dec 18, 2023
1 parent 5bd7509 commit ee39336
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ee39336

Please sign in to comment.