diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b6df890..26b9a7de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,21 +55,21 @@ jobs: 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 - store-namesrv: - image: apache/rocketmq:4.9.7 - ports: - - 9876:9876 - options: > - sh mqnamesrv - --health-cmd="./mqadmin clusterList -n localhost:9876" --health-interval=10s --health-timeout=5s --health-retries=3 - store-broker: - image: apache/rocketmq:4.9.7 - ports: - - 10909:10909 - - 10911:10911 - options: > - sh mqbroker -n localhost:9876 - --health-cmd="./mqadmin clusterRT -n localhost:9876" --health-interval=10s --health-timeout=5s --health-retries=3 +# store-namesrv: +# image: apache/rocketmq:4.9.7 +# ports: +# - 9876:9876 +# options: > +# sh mqnamesrv +# --health-cmd="./mqadmin clusterList -n localhost:9876" --health-interval=10s --health-timeout=5s --health-retries=3 +# store-broker: +# image: apache/rocketmq:4.9.7 +# ports: +# - 10909:10909 +# - 10911:10911 +# options: > +# sh mqbroker -n localhost:9876 +# --health-cmd="./mqadmin clusterRT -n localhost:9876" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Checkout repository @@ -82,6 +82,19 @@ jobs: java-version: ${{ matrix.java }} cache: maven + - name: Set up RocketMQ Namesrv + run: | + wget https://dist.apache.org/repos/dist/release/rocketmq/4.9.8/rocketmq-all-4.9.8-source-release.zip + unzip rocketmq-all-4.9.8-source-release.zip + cd rocketmq-all-4.9.8 + nohup sh bin/mqnamesrv & + sleep 10 + + - name: Set up RocketMQ Broker + run: | + cd rocketmq-all-4.9.8 + nohup sh bin/mqbroker -n localhost:9876 & + - name: Build with Maven run: ./mvnw -B package -DskipTests --file pom.xml