更新 .gitea/workflows/dev.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3m24s

This commit is contained in:
bichangxiong 2025-06-23 23:36:05 +08:00
parent 80018f48be
commit 9cd88cfea4

View File

@ -9,42 +9,38 @@ jobs:
- name: Checkout code
uses: http://47.109.37.87:3000/bichangxiong/checkout@v4 # 使用 Gitea 镜像
# uses: actions/checkout@v3
# - name: Set up JDK 19
# uses: actions/setup-java@v3
# with:
# java-version: '19'
# distribution: 'temurin'
# cache: maven
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# java-version: '17'
# distribution: 'temurin'
# cache: maven
- name: cd
run: cd ruoyi-modules/Property
- name: Build with Maven
run: mvn -B clean package -DskipTests --file pom.xml
- name: Start Spring Cloud Services
- name: maven
run: |
# 启动顺序示例:注册中心 -> 配置中心 -> 网关 -> 业务服务
echo "Starting Server..."
java -jar Property.jar
SERVER_PIDS[0]=$!
- echo '开始构建...'
- echo $PATH
- echo $JAVA_HOME
- java -version
- mvn clean package -Dmaven.test.skip=true
- cp ./ruoyi-modules/Property/target/Property.jar ./docker/jar/
- pwd
- java -jar ./docker/jar/Property.jar
# 等待注册中心启动
sleep 30
# - name: cd
# run: cd ruoyi-modules/Property
# - name: Build with Maven
# run: mvn -B clean package -DskipTests --file pom.xml
# - name: Start Spring Cloud Services
# run: |
# # 启动顺序示例:注册中心 -> 配置中心 -> 网关 -> 业务服务
# echo "Starting Server..."
# java -jar Property.jar
# SERVER_PIDS[0]=$!
# # 等待注册中心启动
# sleep 30
done
# done
# 保持工作流运行,避免服务被终止
wait
env:
JAVA_OPTS: "-Xmx512m -Xms256m"
timeout-minutes: 20
# wait
# env:
# JAVA_OPTS: "-Xmx512m -Xms256m"
# timeout-minutes: 20