Skip to content

Commit

Permalink
Deploy EventMesh
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Apr 19, 2024
1 parent f70f7d9 commit 84ea4af
Showing 1 changed file with 29 additions and 21 deletions.
50 changes: 29 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,50 +48,58 @@ 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
uses: actions/checkout@v4

- name: Download middlewares
run: |
wget https://github.com/alibaba/nacos/releases/download/2.3.2/nacos-server-2.3.2.zip
unzip nacos-server-2.3.2.zip
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
git clone https://github.com/apache/eventmesh.git
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 11

- name: Build EventMesh GenerateGrammarSource
working-directory: eventmesh
run: ./gradlew clean generateGrammarSource --parallel --daemon

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
cache: maven

- name: Download Binary
run: |
wget https://github.com/alibaba/nacos/releases/download/2.3.2/nacos-server-2.3.2.zip
unzip nacos-server-2.3.2.zip -d nacos-server
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 -d rocketmq-all
- name: Set up Meta
working-directory: nacos-server
working-directory: nacos
run: |
nohup bash bin/startup.sh -m standalone &
- name: Set up Event Store
working-directory: rocketmq-all
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 latest EventMesh Runtime
# run: |
# git clone https://github.com/apache/eventmesh.git
- name: Set up EventMesh Runtime
working-directory: eventmesh
run: |
./gradlew clean dist jacocoTestReport -x spotlessJava -x generateGrammarSource --parallel --daemon && ./gradlew installPlugin
bash bin/start.sh
- name: Build with Maven
- name: Build Dashboard
run: ./mvnw -B package -DskipTests --file pom.xml

- name: Run Unit Tests
Expand Down

0 comments on commit 84ea4af

Please sign in to comment.