更新 .gitea/workflows/test.yaml
This commit is contained in:
@@ -19,6 +19,7 @@ jobs:
|
||||
with:
|
||||
ref: dev/3.1_release_merge_MS
|
||||
|
||||
# Maven 官方缓存(Gitea 推荐)
|
||||
- name: 缓存 Maven 依赖
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
@@ -26,12 +27,13 @@ jobs:
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: 查看 JDK & Maven 版本
|
||||
|
||||
- name: 构建项目
|
||||
run: |
|
||||
java -version
|
||||
mvn -v
|
||||
mvn clean package -DskipTests
|
||||
|
||||
- name: Maven 打包
|
||||
run: mvn -B package --file pom.xml
|
||||
- name: 查看构建结果
|
||||
run: ls -lh target/*.jar
|
||||
|
||||
Reference in New Issue
Block a user