ci(P0④): CI 孤儿迁 Gitea Actions + JDK21 + ci 旁路 profile
.github/workflows/ci.yml(GHA 语法在 Gitea 上孤儿+JDK17 写死)迁至 .gitea/workflows/ci.yml(JDK21)。ci.sh 起服务加 --spring.profiles.active=ci(配合 P0① fail-safe,否则健康检查 401/对拍免令牌失效)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
42
.gitea/workflows/ci.yml
Normal file
42
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
# eip4-platform CI(Gitea Actions)。
|
||||
#
|
||||
# P0 修复(2026-06-24 架构评审):原 .github/workflows/ci.yml 在 Gitea(git.latent.chat)上是孤儿
|
||||
# (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
|
||||
Reference in New Issue
Block a user