This is an automated email from the ASF dual-hosted git repository.
lizhimins pushed a commit to branch rocketmq-studio
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git
The following commit(s) were added to refs/heads/rocketmq-studio by this push:
new b448f3897 fix(ci): provision MySQL for backend integration tests
(#5029)
b448f3897 is described below
commit b448f3897ce575b9a29306022e79d898cd4b4e0f
Author: zmuxuny <[email protected]>
AuthorDate: Thu Oct 1 02:27:20 2026 -0700
fix(ci): provision MySQL for backend integration tests (#5029)
---
.github/workflows/ci.yml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f30f04d91..7e1d8e8d0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,6 +54,19 @@ jobs:
backend-test:
name: Backend Tests (Java 21)
runs-on: ubuntu-latest
+ services:
+ mysql:
+ image: mysql:8.0
+ env:
+ MYSQL_ROOT_PASSWORD: studio123
+ MYSQL_DATABASE: rocketmq
+ ports:
+ - 3306:3306
+ options: >-
+ --health-cmd="mysqladmin ping -h 127.0.0.1 --silent"
+ --health-interval=10s
+ --health-timeout=5s
+ --health-retries=10
defaults:
run:
working-directory: server
@@ -68,6 +81,11 @@ jobs:
java-version: "21"
cache: maven
+ - name: Initialize test schema
+ env:
+ MYSQL_PWD: studio123
+ run: docker exec -e MYSQL_PWD -i "${{ job.services.mysql.id }}" mysql
-uroot rocketmq < src/main/resources/db/schema.sql
+
- name: Run backend tests
run: mvn -B -ntp test