ci(actions): add Gitea Actions workflow; docs: note CI path in tasks

This commit is contained in:
Your Name
2025-09-30 16:47:26 +08:00
parent 63a5ee87af
commit 344d473ca1
2 changed files with 29 additions and 1 deletions

28
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,28 @@
name: CI
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_test_package:
runs-on: ubuntu-latest
container:
image: maven:3.9-eclipse-temurin-17
steps:
- name: Show Java and Maven versions
run: |
java -version
mvn -v
# Gitea act_runner clones the repository; explicit checkout is optional.
- name: Build and test
run: mvn -B -DskipTests=false clean verify
- name: Package
run: mvn -B -DskipTests clean package

View File

@@ -6,6 +6,7 @@
- 在 Gitea 上创建仓库建议名称mosquito - 在 Gitea 上创建仓库建议名称mosquito
- 本地添加远程并推送:`git remote add origin <gitea_url>; git push -u origin <branch>` - 本地添加远程并推送:`git remote add origin <gitea_url>; git push -u origin <branch>`
- 使用 Woodpecker已添加 `.woodpecker.yml`,默认在 push/PR 触发 `mvn clean verify` 全量验证与打包。 - 使用 Woodpecker已添加 `.woodpecker.yml`,默认在 push/PR 触发 `mvn clean verify` 全量验证与打包。
- 使用 Gitea Actions已添加 `.gitea/workflows/ci.yml`,同样在 push/PR 上执行 Maven 构建与测试。
- 验证:在 Gitea 中查看流水线执行成功build+test 通过,产物成功构建)。 - 验证:在 Gitea 中查看流水线执行成功build+test 通过,产物成功构建)。
- 优化:后续按需要加入缓存、制品归档、分支保护与质量门禁。 - 优化:后续按需要加入缓存、制品归档、分支保护与质量门禁。
@@ -70,4 +71,3 @@
- 实施:迁移至 `jakarta.annotation`;清理 `javax.annotation-api` 依赖或限定 test scope。 - 实施:迁移至 `jakarta.annotation`;清理 `javax.annotation-api` 依赖或限定 test scope。
- 验证:测试环境可正常启动嵌入式 Redis端口注入仍生效。 - 验证:测试环境可正常启动嵌入式 Redis端口注入仍生效。
- 优化:统一全仓库注解命名空间。 - 优化:统一全仓库注解命名空间。