Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/command-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
test:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
checks: write

steps:
- name: Checkout repository
Expand All @@ -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/
23 changes: 22 additions & 1 deletion .github/workflows/query-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
test:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
checks: write

steps:
- name: Checkout repository
Expand All @@ -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/
3 changes: 3 additions & 0 deletions command-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
<plugin>
<groupId>com.github.gantsign.maven</groupId>
<artifactId>ktlint-maven-plugin</artifactId>
<configuration>
<includeTestSources>false</includeTestSources>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
3 changes: 3 additions & 0 deletions query-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
<plugin>
<groupId>com.github.gantsign.maven</groupId>
<artifactId>ktlint-maven-plugin</artifactId>
<configuration>
<includeTestSources>false</includeTestSources>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Loading