diff --git a/.github/workflows/command-service.yml b/.github/workflows/command-service.yml
index e5b4095..214de0c 100644
--- a/.github/workflows/command-service.yml
+++ b/.github/workflows/command-service.yml
@@ -43,6 +43,9 @@ jobs:
test:
needs: build
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ checks: write
steps:
- name: Checkout repository
@@ -63,11 +66,29 @@ jobs:
- name: Run tests
run: mvn -pl command-service -am verify
+ - name: Report all test results
+ id: reporter
+ uses: dorny/test-reporter@v1
+ if: success() || failure()
+ with:
+ name: 'Command service tests #${{ github.run_number }}'
+ path: |
+ command-service/target/surefire-reports/*.xml,
+ command-service/target/failsafe-reports/*.xml
+ reporter: java-junit
+ fail-on-empty: 'false'
+
+ - name: Add link to check run in job summary
+ if: success() || failure()
+ run: |
+ echo "### 🧪 Test report (check run)" >> $GITHUB_STEP_SUMMARY
+ echo "${{ steps.reporter.outputs.url_html }}" >> $GITHUB_STEP_SUMMARY
+
- name: Archive test reports
uses: actions/upload-artifact@v4
if: success() || failure()
with:
- name: command-test-reports
+ name: command-service-test-reports
path: |
**/target/surefire-reports/
**/target/failsafe-reports/
diff --git a/.github/workflows/query-service.yml b/.github/workflows/query-service.yml
index 24c6bad..73f0b6f 100644
--- a/.github/workflows/query-service.yml
+++ b/.github/workflows/query-service.yml
@@ -43,6 +43,9 @@ jobs:
test:
needs: build
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ checks: write
steps:
- name: Checkout repository
@@ -63,11 +66,29 @@ jobs:
- name: Run tests
run: mvn -pl query-service -am verify
+ - name: Report all test results
+ id: reporter
+ uses: dorny/test-reporter@v1
+ if: success() || failure()
+ with:
+ name: 'Query service tests #${{ github.run_number }}'
+ path: |
+ query-service/target/surefire-reports/*.xml,
+ query-service/target/failsafe-reports/*.xml
+ reporter: java-junit
+ fail-on-empty: 'false'
+
+ - name: Add link to check run in job summary
+ if: success() || failure()
+ run: |
+ echo "### 🧪 Test report (check run)" >> $GITHUB_STEP_SUMMARY
+ echo "${{ steps.reporter.outputs.url_html }}" >> $GITHUB_STEP_SUMMARY
+
- name: Archive test reports
uses: actions/upload-artifact@v4
if: success() || failure()
with:
- name: query-test-reports
+ name: query-service-test-reports
path: |
**/target/surefire-reports/
**/target/failsafe-reports/
diff --git a/command-api/pom.xml b/command-api/pom.xml
index d9106e3..8836c35 100644
--- a/command-api/pom.xml
+++ b/command-api/pom.xml
@@ -51,6 +51,9 @@
com.github.gantsign.maven
ktlint-maven-plugin
+
+ false
+
diff --git a/query-api/pom.xml b/query-api/pom.xml
index a380313..ebc672f 100644
--- a/query-api/pom.xml
+++ b/query-api/pom.xml
@@ -118,6 +118,9 @@
com.github.gantsign.maven
ktlint-maven-plugin
+
+ false
+