Files
eip4-platform/.github/workflows/ci.yml
zhengwr 073e2a67f5 ci: 一键流水线脚本 + GitHub Actions 工作流(编译/单测/ArchUnit/对拍冒烟)
scripts/ci.sh:全模块 install → 重建冒烟库+自举 → 起服务 → 种子 21 实体全量对拍 + C2 权限样本;
端口/库名/账号环境变量化(本地默认 8090/eip4ci),--skip-parity 可只跑编译测试。
ci.yml:PG15 service 容器,步骤复用 ci.sh(换 Jenkins 同构迁移)。
完整本地实跑验证待并行代理收工后执行(避免并发 mvn 互踩)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:04:58 +08:00

36 lines
935 B
YAML

# eip4-platform CI:编译+单测+ArchUnit+对拍冒烟(公司自建 Git 服务可换 Jenkins,步骤同 scripts/ci.sh)
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: "17"
cache: maven
- name: 编译+单测+对拍冒烟
env:
CI_PG_HOST: localhost
CI_PG_PORT: "5433"
CI_PG_USER: ci
CI_DB: eip4ci
CI_PORT: "8090"
run: bash scripts/ci.sh