Skip to content

Commit

Permalink
attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Apr 19, 2024
1 parent 72d2739 commit 5816c89
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 5816c89

Please sign in to comment.