Skip to content

Commit

Permalink
Deploy Meta and Event Store (+7 squashed commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Apr 19, 2024
1 parent 4494f0a commit 5eef5f4
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
matrix:
os: [ ubuntu-latest ]
java: [ 8, 11 ]
language: ['java']
language: [ 'java' ]
runs-on: ${{ matrix.os }}

services:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 5eef5f4

Please sign in to comment.