|
30891
|
23409
|
13
|
5
|
6c80c00976d1c5ac4aaa5f76d10cf1e7b4f59448
|
0
|
Analyze (java)
|
1
|
name: CodeQL Analysis
"on":
push:
name: CodeQL Analysis
"on":
push:
branches: [develop, master, main]
pull_request:
branches: [develop, master, main]
schedule:
# 每周一凌晨3点运行
- cron: '0 3 * * 1'
jobs:
analyze:
name: Analyze (java)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
cache: gradle
distribution: temurin
java-version: "17"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-extended,security-and-quality
- name: Grant Execute Permission
run: chmod +x ./gradlew
- name: Build
run: ./gradlew assembleDebug --stacktrace
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: /language:${{ matrix.language }}
timeout-minutes: "30"
strategy:
fail-fast: "false"
matrix:
language:
- java
permissions:
actions: read
contents: read
security-events: write
...
|
analyze
|
null
|
["ubuntu-latest"]
|
27031
|
2
|
1783911629
|
1783911720
|
1783911628
|
1783911720
|
|
0
|
|
0
|
Edit
Delete
|
|
30892
|
23410
|
60
|
5
|
f73daf0a17c4cd19344f03ba21afcc326a49a650
|
0
|
Static governance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
static-governance:
name: Static governance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
27032
|
2
|
1784003176
|
1784003267
|
1784003175
|
1784003267
|
|
0
|
|
0
|
Edit
Delete
|
|
30894
|
23411
|
61
|
5
|
7e38caa7a9a622e250ab06620cd295404fd97f4a
|
0
|
free-gates
|
1
|
name: kb-governance
"on":
pull_request name: kb-governance
"on":
pull_request:
push:
branches: [main]
jobs:
free-gates:
name: free-gates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install -r requirements.txt -r requirements-ingest.txt
- run: bash eval/ci.sh
...
|
free-gates
|
null
|
["ubuntu-latest"]
|
27033
|
2
|
1784003957
|
1784011490
|
1784003956
|
1784011490
|
|
0
|
|
0
|
Edit
Delete
|
|
30903
|
23416
|
60
|
5
|
262802ed1be2f708784260d2fd49e110a9c365f9
|
0
|
Static governance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
static-governance:
name: Static governance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
env:
GOVERNANCE_SKIP_LOCAL_ASSET_GATES: "true"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
27034
|
2
|
1784011490
|
1784011580
|
1784011200
|
1784011581
|
|
0
|
|
0
|
Edit
Delete
|
|
30905
|
23417
|
60
|
5
|
6d7311f3c50d0894683ed1b0681f23bde45a35c4
|
0
|
Static governance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
static-governance:
name: Static governance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
env:
GOVERNANCE_SKIP_LOCAL_ASSET_GATES: "true"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
27035
|
1
|
1784011769
|
1784011826
|
1784011767
|
1784011826
|
|
0
|
|
0
|
Edit
Delete
|
|
30906
|
23417
|
60
|
5
|
6d7311f3c50d0894683ed1b0681f23bde45a35c4
|
0
|
Runtime and UI acceptance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
runtime-acceptance:
name: Runtime and UI acceptance
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/base_framework_ci?schema=public
REDIS_URL: redis://127.0.0.1:6379
STORAGE_ENDPOINT: http://127.0.0.1:19000
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start MinIO (official image, same command as local doctrine)
run: |
docker run -d --name minio -p 19000:9000 minio/minio server /data
for i in $(seq 1 30); do
curl -sf http://127.0.0.1:19000/minio/health/live && break
sleep 2
done
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run real DB and Redis acceptance
run: pnpm check:runtime
- name: Install Playwright browser
run: pnpm --filter web exec playwright install --with-deps chromium
- name: Run UI acceptance
run: pnpm check:ui
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: base_framework_ci
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: --health-cmd "pg_isready -U postgres -d base_framework_ci" --health-interval 5s --health-timeout 5s --health-retries 20
redis:
image: redis:7
ports:
- 6379:6379
options: --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 5s --health-retries 20
...
|
runtime-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
27036
|
2
|
1784011828
|
1784011850
|
1784011767
|
1784011850
|
|
1
|
|
0
|
Edit
Delete
|
|
30907
|
23418
|
60
|
5
|
a7536ce9426fa12786e46db761420ec63c26b09d
|
0
|
Static governance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
static-governance:
name: Static governance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
env:
GOVERNANCE_SKIP_LOCAL_ASSET_GATES: "true"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
27037
|
1
|
1784012560
|
1784012606
|
1784012558
|
1784012606
|
|
0
|
|
0
|
Edit
Delete
|
|
30908
|
23418
|
60
|
5
|
a7536ce9426fa12786e46db761420ec63c26b09d
|
0
|
Runtime and UI acceptance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
runtime-acceptance:
name: Runtime and UI acceptance
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/base_framework_ci?schema=public
REDIS_URL: redis://127.0.0.1:6379
STORAGE_ENDPOINT: http://127.0.0.1:19000
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start MinIO (official image, same command as local doctrine)
run: |
docker run -d --name minio -p 19000:9000 minio/minio server /data
for i in $(seq 1 30); do
curl -sf http://127.0.0.1:19000/minio/health/live && break
sleep 2
done
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run real DB and Redis acceptance
run: pnpm check:runtime
- name: Install Playwright browser
run: pnpm --filter web exec playwright install --with-deps chromium
- name: Run UI acceptance
run: pnpm check:ui
env:
UI_SKIP_VISUAL_BASELINES: "true"
- if: failure()
name: Upload failure artifacts (reports + playwright traces)
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: acceptance-failure-artifacts
path: |
reports/*.latest.json
apps/web/test-results
apps/web/playwright-report
retention-days: "7"
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: base_framework_ci
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: --health-cmd "pg_isready -U postgres -d base_framework_ci" --health-interval 5s --health-timeout 5s --health-retries 20
redis:
image: redis:7
ports:
- 6379:6379
options: --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 5s --health-retries 20
...
|
runtime-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
27038
|
2
|
1784012608
|
1784012617
|
1784012558
|
1784012617
|
|
1
|
|
0
|
Edit
Delete
|
|
30909
|
23419
|
60
|
5
|
13be1d708476428e5788727ffd735f54b027cb9f
|
0
|
Static governance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
static-governance:
name: Static governance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
env:
GOVERNANCE_SKIP_LOCAL_ASSET_GATES: "true"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
27039
|
1
|
1784013143
|
1784013188
|
1784013142
|
1784013188
|
|
0
|
|
0
|
Edit
Delete
|
|
30910
|
23419
|
60
|
5
|
13be1d708476428e5788727ffd735f54b027cb9f
|
0
|
Runtime and UI acceptance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
runtime-acceptance:
name: Runtime and UI acceptance
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/base_framework_ci?schema=public
REDIS_URL: redis://127.0.0.1:6379
STORAGE_ENDPOINT: http://127.0.0.1:19000
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start MinIO (official image, same command as local doctrine)
run: |
docker run -d --name minio -p 19000:9000 minio/minio server /data
for i in $(seq 1 30); do
curl -sf http://127.0.0.1:19000/minio/health/live && break
sleep 2
done
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run real DB and Redis acceptance
run: pnpm check:runtime
- name: Install Playwright browser
run: pnpm --filter web exec playwright install --with-deps chromium
- name: Run UI acceptance
run: pnpm check:ui
env:
UI_SKIP_VISUAL_BASELINES: "true"
- if: failure()
name: Upload failure artifacts (reports + playwright traces)
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: acceptance-failure-artifacts
path: |
reports/*.latest.json
apps/web/test-results
apps/web/playwright-report
retention-days: "7"
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: base_framework_ci
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: --health-cmd "pg_isready -U postgres -d base_framework_ci" --health-interval 5s --health-timeout 5s --health-retries 20
redis:
image: redis:7
ports:
- 6379:6379
options: --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 5s --health-retries 20
...
|
runtime-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
27040
|
2
|
1784013190
|
1784013197
|
1784013142
|
1784013197
|
|
1
|
|
0
|
Edit
Delete
|
|
30911
|
23420
|
60
|
5
|
05d910e9c48177e24723827b424c2f8919bde17d
|
0
|
Static governance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
static-governance:
name: Static governance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
env:
GOVERNANCE_SKIP_LOCAL_ASSET_GATES: "true"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
27041
|
1
|
1784013389
|
1784013434
|
1784013389
|
1784013434
|
|
0
|
|
0
|
Edit
Delete
|
|
30912
|
23420
|
60
|
5
|
05d910e9c48177e24723827b424c2f8919bde17d
|
0
|
Runtime and UI acceptance
|
1
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
runtime-acceptance:
name: Runtime and UI acceptance
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/base_framework_ci?schema=public
REDIS_URL: redis://127.0.0.1:6379
STORAGE_ENDPOINT: http://127.0.0.1:19000
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start MinIO (official image, same command as local doctrine)
run: |
docker run -d --name minio -p 19000:9000 minio/minio server /data
for i in $(seq 1 30); do
curl -sf http://127.0.0.1:19000/minio/health/live && break
sleep 2
done
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run real DB and Redis acceptance
run: pnpm check:runtime
- name: Install Playwright browser
run: pnpm --filter web exec playwright install --with-deps chromium
- name: Run UI acceptance
run: pnpm check:ui
env:
UI_SKIP_VISUAL_BASELINES: "true"
- if: failure()
name: Upload failure artifacts (reports + playwright traces)
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: acceptance-failure-artifacts
path: |
reports/*.latest.json
apps/web/test-results
apps/web/playwright-report
retention-days: "7"
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: base_framework_ci
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: --health-cmd "pg_isready -U postgres -d base_framework_ci" --health-interval 5s --health-timeout 5s --health-retries 20
redis:
image: redis:7
ports:
- 6379:6379
options: --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 5s --health-retries 20
...
|
runtime-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
27042
|
2
|
1784013436
|
1784013443
|
1784013389
|
1784013443
|
|
1
|
|
0
|
Edit
Delete
|
|
30913
|
23421
|
51
|
5
|
c0618a939c6a7f40d91e9160a083313befe7c157
|
0
|
后端 · lint + 类型 + 无DB单测(含契约)
|
1
|
name: CI
"on":
push:
branches: name: CI
"on":
push:
branches: [main]
pull_request:
branches: [main]
jobs:
server-checks:
name: 后端 · lint + 类型 + 无DB单测(含契约)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: server/package-lock.json
node-version: "20"
- run: npm ci
- run: npx prisma generate
- run: npm run lint
- run: npm run build
- run: npm run test:unit
defaults:
run:
working-directory: server
...
|
server-checks
|
null
|
["ubuntu-latest"]
|
27043
|
1
|
1784015687
|
1784015750
|
1784015687
|
1784015750
|
|
0
|
|
0
|
Edit
Delete
|
|
30914
|
23421
|
51
|
5
|
c0618a939c6a7f40d91e9160a083313befe7c157
|
0
|
后端 · 真实DB集成测试(多租户/RBAC/并发/状态机/归因)
|
1
|
name: CI
"on":
push:
branches: name: CI
"on":
push:
branches: [main]
pull_request:
branches: [main]
jobs:
server-integration:
name: 后端 · 真实DB集成测试(多租户/RBAC/并发/状态机/归因)
runs-on: ubuntu-latest
env:
# global-setup 会用这个串跑 prisma migrate deploy + seed,再运行 vitest。
TEST_DATABASE_URL: postgresql://bentong:bentong@localhost:5432/bentong_test?schema=public
DATABASE_URL: postgresql://bentong:bentong@localhost:5432/bentong_test?schema=public
# CI 专用占位密钥(仅满足 env.ts 的 zod 校验,绝非生产值)。
JWT_SECRET: ci-jwt-secret-not-for-prod
JWT_REFRESH_SECRET: ci-jwt-refresh-secret-not-for-prod
# 用 Mock 适配层:CI 不打外部 LLM/平台,确定性、零外部依赖。
USE_MOCK_ADAPTERS: 'true'
NODE_ENV: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: server/package-lock.json
node-version: "20"
- run: npm ci
- run: npx prisma generate
- run: npm run test:integration
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: bentong_test
POSTGRES_PASSWORD: bentong
POSTGRES_USER: bentong
ports:
- 5432:5432
options: --health-cmd "pg_isready -U bentong -d bentong_test" --health-interval 5s --health-timeout 5s --health-retries 20
defaults:
run:
working-directory: server
...
|
server-integration
|
null
|
["ubuntu-latest"]
|
27044
|
2
|
1784015750
|
1784015782
|
1784015687
|
1784015782
|
|
0
|
|
0
|
Edit
Delete
|
|
30915
|
23421
|
51
|
5
|
c0618a939c6a7f40d91e9160a083313befe7c157
|
0
|
前端 · 静态契约 + 屏幕治理 + lint + AOT构建
|
1
|
name: CI
"on":
push:
branches: name: CI
"on":
push:
branches: [main]
pull_request:
branches: [main]
jobs:
frontend-static:
name: 前端 · 静态契约 + 屏幕治理 + lint + AOT构建
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: 团购本地生活AI运营App/package-lock.json
node-version: "20"
- run: npm ci
- run: npm run vendor
- run: npm test
- run: npm run lint
- run: npm run build
defaults:
run:
working-directory: 团购本地生活AI运营App
...
|
frontend-static
|
null
|
["ubuntu-latest"]
|
27045
|
2
|
1784015782
|
1784015798
|
1784015687
|
1784015798
|
|
0
|
|
0
|
Edit
Delete
|