# 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