From 5eef5f4754102ea53136952c9b7885ad072401ef Mon Sep 17 00:00:00 2001 From: Pil0tXia Date: Fri, 19 Apr 2024 15:22:11 +0800 Subject: [PATCH] Deploy Meta and Event Store (+7 squashed commit) Squashed commit: [5acff2f] All set up [d7709f3] Fix https://github.com/Pil0tXia/eventmesh-dashboard/actions/runs/8750467914/job/24014067077 [7511311] Fix https://github.com/Pil0tXia/eventmesh-dashboard/actions/runs/8750423240/job/24013937143 [f45a4d1] attempt 3 [5816c89] attempt 2 [72d2739] Fix https://github.com/Pil0tXia/eventmesh-dashboard/actions/runs/8750043293/job/24012794317 [0ef9ba8] fix attempt 1 (+1 squashed commits) Squashed commits: [51fcaa5] attempt 1 --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 025bc906..771fd92c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: matrix: os: [ ubuntu-latest ] java: [ 8, 11 ] - language: ['java'] + language: [ 'java' ] runs-on: ${{ matrix.os }} services: @@ -48,6 +48,14 @@ jobs: - 3306:3306 # Set health checks to wait until MySQL has started options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + meta: + # Default Meta + image: nacos/nacos-server:v2.3.2 + env: + MODE: standalone + ports: + - 8848:8848 + options: --health-cmd="curl -X GET "http://localhost:8848/nacos/v1/cs/configs?dataId=*&group=&search=blur&pageNo=1&pageSize=10"" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Checkout repository @@ -60,5 +68,21 @@ jobs: java-version: ${{ matrix.java }} cache: maven + # Default Event Store + - name: Download RocketMQ Binary + run: | + wget https://dist.apache.org/repos/dist/release/rocketmq/4.9.8/rocketmq-all-4.9.8-bin-release.zip + unzip rocketmq-all-4.9.8-bin-release.zip + + - name: Set up Event Store + working-directory: rocketmq-all-4.9.8-bin-release + run: | + nohup sh bin/mqnamesrv & + sleep 5 + nohup sh bin/mqbroker -n localhost:9876 & + - name: Build with Maven - run: ./mvnw -B package --file pom.xml + run: ./mvnw -B package -DskipTests --file pom.xml + + - name: Run Unit Tests + run: ./mvnw -B test --file pom.xml