- 新人上手 §1:托管地址/clone 命令改 <GIT_HOST>:<OWNER> 占位,SSH 端口细节改「向负责人索取」 - 路线图/用户管理Delta/总览 三处历史记录行、.gitea/ci.yml 注释:host 名改「私有 Gitea/私有远程」 - 全仓 grep 验证零残留 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
# eip4-platform CI(Gitea Actions)。
|
|
#
|
|
# P0 修复(2026-06-24 架构评审):原 .github/workflows/ci.yml 在私有 Gitea 上是孤儿
|
|
# (GitHub Actions 不会跑),且 java-version 写死 17(项目 JDK21)。本文件迁到 Gitea 规范位置
|
|
# .gitea/workflows/,JDK 升 21。
|
|
#
|
|
# 前置条件:Gitea 实例需已启用 Actions 且注册了带 `ubuntu-latest` 标签的 act_runner;
|
|
# 否则本工作流不会被调度(纯文件存在不等于会跑)。详见仓库 Actions 设置。
|
|
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-test-parity:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
postgres:
|
|
image: postgres:15
|
|
env:
|
|
POSTGRES_USER: ci
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
ports: ["5433:5432"]
|
|
options: >-
|
|
--health-cmd "pg_isready -U ci" --health-interval 5s
|
|
--health-timeout 5s --health-retries 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
cache: maven
|
|
- name: 编译+单测(含 ArchUnit)+对拍冒烟
|
|
env:
|
|
CI_PG_HOST: localhost
|
|
CI_PG_PORT: "5433"
|
|
CI_PG_USER: ci
|
|
CI_DB: eip4ci
|
|
CI_PORT: "8090"
|
|
run: bash scripts/ci.sh
|