更新 .gitea/workflows/dev.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8m32s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8m32s
This commit is contained in:
parent
defd00ce89
commit
80018f48be
@ -24,7 +24,8 @@ jobs:
|
|||||||
# java-version: '17'
|
# java-version: '17'
|
||||||
# distribution: 'temurin'
|
# distribution: 'temurin'
|
||||||
# cache: maven
|
# cache: maven
|
||||||
|
- name: cd
|
||||||
|
run: cd ruoyi-modules/Property
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B clean package -DskipTests --file pom.xml
|
run: mvn -B clean package -DskipTests --file pom.xml
|
||||||
|
|
||||||
@ -32,20 +33,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# 启动顺序示例:注册中心 -> 配置中心 -> 网关 -> 业务服务
|
# 启动顺序示例:注册中心 -> 配置中心 -> 网关 -> 业务服务
|
||||||
echo "Starting Server..."
|
echo "Starting Server..."
|
||||||
java -jar $(find target -name '*Property*.jar' | head -1) &
|
java -jar Property.jar
|
||||||
SERVER_PIDS[0]=$!
|
SERVER_PIDS[0]=$!
|
||||||
|
|
||||||
# 等待注册中心启动
|
# 等待注册中心启动
|
||||||
sleep 30
|
sleep 30
|
||||||
|
|
||||||
# 输出服务状态
|
|
||||||
for pid in "${SERVER_PIDS[@]}"; do
|
|
||||||
if ps -p $pid > /dev/null; then
|
|
||||||
echo "Service with PID $pid is running."
|
|
||||||
else
|
|
||||||
echo "Service with PID $pid has stopped."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# 保持工作流运行,避免服务被终止
|
# 保持工作流运行,避免服务被终止
|
||||||
|
Loading…
Reference in New Issue
Block a user