diff --git a/.github/workflows/maven.workflow.yml b/.github/workflows/maven.workflow.yml
index a7c546b..8768c23 100644
--- a/.github/workflows/maven.workflow.yml
+++ b/.github/workflows/maven.workflow.yml
@@ -26,7 +26,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Maven Build-And-Test
- run: mvn -B -T1C -pl order-backend,product-backend -am clean verify
+ run: mvn -B -T1C -pl order-backend,product-backend -am clean verify -Pcoverage
- name: Publish JUnit results
if: always()
@@ -47,8 +47,7 @@ jobs:
quality_gate:
runs-on: ubuntu-latest
needs: build_and_test
- if: github.event_name == 'pull-request'
+ if: github.event_name == 'pull_request'
steps:
- name: Sonar-Analyse
- run: |
- echo: "test"
\ No newline at end of file
+ run: echo "Quality Gate Step läuft"
\ No newline at end of file
diff --git a/order-backend/pom.xml b/order-backend/pom.xml
index 1277d9a..af9c69a 100644
--- a/order-backend/pom.xml
+++ b/order-backend/pom.xml
@@ -38,36 +38,45 @@
runtime
+
+
+ coverage
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.11
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+ XML
+
+
+
+
+
+
+
+
+
org.springframework.boot
spring-boot-maven-plugin
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.11
-
-
-
- prepare-agent
-
-
-
- report
- test
-
- report
-
-
-
- XML
-
-
-
-
-
au.com.dius.pact.provider
maven
diff --git a/pacts/order-backend-product-backend.json b/pacts/order-backend-product-backend.json
index 6a794c6..7f7ff3f 100644
--- a/pacts/order-backend-product-backend.json
+++ b/pacts/order-backend-product-backend.json
@@ -26,7 +26,7 @@
},
"response": {
"body": {
- "currency": "EUR",
+ "currency": "USD",
"id": 1,
"name": "TestProduct",
"price": 19.99
diff --git a/pom.xml b/pom.xml
index 1b88660..dddb4c9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,10 @@
3.5.6
21
4.6.17
+
+ ${maven.multiModuleProjectDirectory}/report-aggregate/target/site/
+ jacoco-aggregate/jacoco.xml
+
@@ -49,6 +53,19 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+ report-aggregate
+ verify
+
+ report-aggregate
+
+
+
+
org.codehaus.mojo
versions-maven-plugin
diff --git a/product-backend/pom.xml b/product-backend/pom.xml
index 4f5b744..a7509e1 100644
--- a/product-backend/pom.xml
+++ b/product-backend/pom.xml
@@ -30,6 +30,39 @@
provided
+
+
+ coverage
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.11
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+ XML
+
+
+
+
+
+
+
+
+
diff --git a/test b/test
new file mode 100644
index 0000000..e69de29