Skip to content

Commit 8fa84fd

Browse files
mohityadav766SaaiAravindhRaja
authored andcommitted
Make OpeNMetadata Service Unit Test Required (open-metadata#27099)
1 parent 87749c6 commit 8fa84fd

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/openmetadata-service-unit-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ jobs:
6565
timeout-minutes: 90
6666
needs: changes
6767
if: ${{ needs.changes.outputs.java == 'true' }}
68+
strategy:
69+
fail-fast: false
70+
matrix:
71+
database: [mysql, postgresql]
6872
steps:
6973
- name: Checkout
7074
uses: actions/checkout@v4
@@ -97,20 +101,20 @@ jobs:
97101
librdkafka-dev unixodbc-dev libevent-dev jq
98102
sudo make install_antlr_cli
99103
100-
- name: Run openmetadata-service unit tests
104+
- name: Run openmetadata-service unit tests (${{ matrix.database }})
101105
env:
102106
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103107
run: |
104108
mvn -B clean package -pl openmetadata-service -am \
105-
-Pstatic-code-analysis \
109+
-Pstatic-code-analysis,${{ matrix.database }} \
106110
-DfailIfNoTests=false \
107111
-Dsonar.skip=true
108112
109113
- name: Upload surefire reports
110114
if: ${{ failure() && hashFiles('openmetadata-service/target/surefire-reports/TEST-*.xml') != '' }}
111115
uses: actions/upload-artifact@v4
112116
with:
113-
name: openmetadata-service-surefire-reports
117+
name: openmetadata-service-surefire-reports-${{ matrix.database }}
114118
path: openmetadata-service/target/surefire-reports/
115119

116120
- name: Publish Test Report
@@ -120,6 +124,7 @@ jobs:
120124
github_token: ${{ secrets.GITHUB_TOKEN }}
121125
fail_on_test_failures: true
122126
report_paths: "openmetadata-service/target/surefire-reports/TEST-*.xml"
127+
check_name: "Test Report (${{ matrix.database }})"
123128

124129
# Single required-check gate for branch protection.
125130
# Skipped (= "Success") when all test jobs pass or are legitimately skipped.

0 commit comments

Comments
 (0)