|
52051
|
28428
|
199
|
5
|
d206024d01a2f769f75cec3855933b335ba8dfa5
|
0
|
Static governance
|
0
|
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
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
- if: always()
name: Upload static governance evidence
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: governance-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
path: |
reports/*.latest.json
!reports/governance-profile-*.latest.json
!reports/runtime-acceptance.latest.json
!reports/conformance-differential.latest.json
!reports/ui-acceptance.latest.json
retention-days: "30"
timeout-minutes: "25"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
0
|
3
|
0
|
1795675890
|
1795675839
|
1795675890
|
|
0
|
|
0
|
Edit
Delete
|
|
52052
|
28428
|
199
|
5
|
d206024d01a2f769f75cec3855933b335ba8dfa5
|
0
|
IM component tests and build
|
0
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
im-component-acceptance:
name: IM component tests and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run IM unit and HTTP component acceptance
run: pnpm --filter api-nestjs exec vitest run test/im-config.test.ts test/im-work-order-client.test.ts test/im-work-task-client.test.ts test/im-digital-execution-client.test.ts test/im-hub.acceptance.test.ts
- name: Build API and Web
run: |
pnpm --filter @repo/contracts... build
pnpm --filter api-nestjs build
pnpm --filter web build
timeout-minutes: "20"
...
|
im-component-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
0
|
3
|
0
|
1795675890
|
1795675839
|
1795675890
|
|
0
|
|
0
|
Edit
Delete
|
|
52053
|
28429
|
199
|
5
|
d206024d01a2f769f75cec3855933b335ba8dfa5
|
0
|
manifest-and-code
|
0
|
name: Platform overlay
"on": [push, pull_r name: Platform overlay
"on": [push, pull_request]
jobs:
manifest-and-code:
name: manifest-and-code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- run: pnpm --filter @repo/contracts... build
- run: pnpm check:platform
...
|
manifest-and-code
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795675840
|
1795675840
|
|
0
|
|
0
|
Edit
Delete
|
|
52054
|
28430
|
199
|
5
|
730973fda2ae383bed4ac893bf5cfe35b752f7c1
|
0
|
Static governance
|
0
|
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
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
- if: always()
name: Upload static governance evidence
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: governance-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
path: |
reports/*.latest.json
!reports/governance-profile-*.latest.json
!reports/runtime-acceptance.latest.json
!reports/conformance-differential.latest.json
!reports/ui-acceptance.latest.json
retention-days: "30"
timeout-minutes: "25"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
0
|
3
|
0
|
1795677106
|
1795675890
|
1795677106
|
|
0
|
|
0
|
Edit
Delete
|
|
52055
|
28430
|
199
|
5
|
730973fda2ae383bed4ac893bf5cfe35b752f7c1
|
0
|
IM component tests and build
|
0
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
im-component-acceptance:
name: IM component tests and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run IM unit and HTTP component acceptance
run: pnpm --filter api-nestjs exec vitest run test/im-config.test.ts test/im-work-order-client.test.ts test/im-work-task-client.test.ts test/im-digital-execution-client.test.ts test/im-hub.acceptance.test.ts
- name: Build API and Web
run: |
pnpm --filter @repo/contracts... build
pnpm --filter api-nestjs build
pnpm --filter web build
timeout-minutes: "20"
...
|
im-component-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
0
|
3
|
0
|
1795677106
|
1795675890
|
1795677106
|
|
0
|
|
0
|
Edit
Delete
|
|
52056
|
28431
|
199
|
5
|
730973fda2ae383bed4ac893bf5cfe35b752f7c1
|
0
|
manifest-and-code
|
0
|
name: Platform overlay
"on": [push, pull_r name: Platform overlay
"on": [push, pull_request]
jobs:
manifest-and-code:
name: manifest-and-code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- run: pnpm --filter @repo/contracts... build
- run: pnpm check:platform
...
|
manifest-and-code
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795675890
|
1795675890
|
|
0
|
|
0
|
Edit
Delete
|
|
52057
|
28432
|
208
|
5
|
09746ef8cecd110b61a50241f1d9fc82d83e05a5
|
0
|
Static governance
|
0
|
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
with:
fetch-depth: "0"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: "20"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
- if: always()
name: Upload immutable static governance evidence
uses: actions/upload-artifact@v4
with:
if-no-files-found: warn
name: governance-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
path: |
reports/*.latest.json
!reports/governance-profile-*.latest.json
!reports/runtime-acceptance.latest.json
!reports/conformance-differential.latest.json
!reports/ui-acceptance.latest.json
retention-days: "30"
timeout-minutes: "20"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795676128
|
1795676128
|
|
0
|
|
0
|
Edit
Delete
|
|
52058
|
28432
|
208
|
5
|
09746ef8cecd110b61a50241f1d9fc82d83e05a5
|
0
|
Runtime and UI acceptance
|
0
|
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
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: "20"
- 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
- if: always()
name: Upload immutable runtime and UI evidence
uses: actions/upload-artifact@v4
with:
if-no-files-found: warn
name: governance-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
path: |
reports/runtime-acceptance.latest.json
reports/conformance-differential.latest.json
reports/ui-acceptance.latest.json
retention-days: "30"
timeout-minutes: "45"
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"]
|
0
|
7
|
0
|
0
|
1795676128
|
1795676128
|
|
0
|
|
0
|
Edit
Delete
|
|
52059
|
28432
|
208
|
5
|
09746ef8cecd110b61a50241f1d9fc82d83e05a5
|
0
|
Aggregate same-SHA governance evidence
|
0
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
governance-evidence:
name: Aggregate same-SHA governance evidence
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Download static evidence
uses: actions/download-artifact@v4
with:
name: governance-static-governance-${{ github.sha }}-${{ github.run_attempt }}
path: reports
continue-on-error: true
- name: Download runtime and UI evidence
uses: actions/download-artifact@v4
with:
name: governance-runtime-acceptance-${{ github.sha }}-${{ github.run_attempt }}
path: reports
continue-on-error: true
- name: Generate same-SHA profile status manifest
run: node scripts/generate-governance-status.mjs
- if: always()
name: Upload immutable aggregate status
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: governance-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
path: reports/governance-status.latest.json
retention-days: "30"
- if: always()
name: Preserve upstream gate result
run: |
test "${{ needs.static-governance.result }}" = "success"
test "${{ needs.runtime-acceptance.result }}" = "success"
timeout-minutes: "10"
...
|
governance-evidence
|
["static-governance","runtime-acceptan ["static-governance","runtime-acceptance"]...
|
["ubuntu-latest"]
|
0
|
7
|
0
|
0
|
1795676128
|
1795676128
|
|
0
|
|
0
|
Edit
Delete
|
|
52060
|
28433
|
83
|
5
|
648ecfdeb4f86967e26cdaa1c930a4294184ab95
|
0
|
Static governance
|
0
|
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
run: |
auth="Authorization: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 | tr -d '\n')"
git init -q .
git remote add origin "$REPO_URL" 2>/dev/null || git remote set-url origin "$REPO_URL"
git -c protocol.version=2 -c http.extraHeader="$auth" fetch -q --prune --tags origin \
"+refs/heads/*:refs/remotes/origin/*" "$CHECKOUT_SHA"
git checkout -q -f --detach "$CHECKOUT_SHA"
git clean -ffdxq
test "$(git rev-parse HEAD)" = "$CHECKOUT_SHA"
env:
REPO_TOKEN: ${{ github.token }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
CHECKOUT_SHA: ${{ github.sha }}
- name: Setup Node.js
run: bash scripts/ci-setup-node.sh 22.23.2
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Configure read-only platform package authentication
run: node scripts/configure-platform-npm.mjs
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Prepare locked Digital Employee OS
run: bash scripts/ci-prepare-locked-os.sh
env:
OS_REPO_READ_TOKEN: ${{ secrets.OS_REPO_READ_TOKEN }}
OS_REPOSITORY_URL: ${{ github.server_url }}/luoanwu/digital-employee-os
OS_REPOSITORY_API_URL: ${{ github.server_url }}/api/v1/repos/luoanwu/digital-employee-os
- if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
name: Require same-repository PR secrets
run: |
echo "::error::Fork PRs lack read-only platform/OS tokens; run Governance on an internal branch before merge."
exit 1
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run source governance gate
run: pnpm check:source
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
0
|
3
|
0
|
1795676762
|
1795676423
|
1795676762
|
|
0
|
|
0
|
Edit
Delete
|
|
52061
|
28433
|
83
|
5
|
648ecfdeb4f86967e26cdaa1c930a4294184ab95
|
0
|
Runtime and UI acceptance
|
0
|
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/juhai_ai_hr_system_ci?schema=public
REDIS_URL: redis://127.0.0.1:6379
steps:
- name: Checkout
run: |
auth="Authorization: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 | tr -d '\n')"
git init -q .
git remote add origin "$REPO_URL" 2>/dev/null || git remote set-url origin "$REPO_URL"
git -c protocol.version=2 -c http.extraHeader="$auth" fetch -q --prune --tags origin \
"+refs/heads/*:refs/remotes/origin/*" "$CHECKOUT_SHA"
git checkout -q -f --detach "$CHECKOUT_SHA"
git clean -ffdxq
test "$(git rev-parse HEAD)" = "$CHECKOUT_SHA"
env:
REPO_TOKEN: ${{ github.token }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
CHECKOUT_SHA: ${{ github.sha }}
- name: Setup Node.js
run: bash scripts/ci-setup-node.sh 22.23.2
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Configure read-only platform package authentication
run: node scripts/configure-platform-npm.mjs
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
name: Require same-repository PR secrets
run: |
echo "::error::Fork PRs lack read-only platform/OS tokens; run Governance on an internal branch before merge."
exit 1
- 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 NestJS UI acceptance
run: pnpm check:ui
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Prepare locked Digital Employee OS
run: bash scripts/ci-prepare-locked-os.sh
env:
OS_REPO_READ_TOKEN: ${{ secrets.OS_REPO_READ_TOKEN }}
OS_REPOSITORY_URL: ${{ github.server_url }}/luoanwu/digital-employee-os
OS_REPOSITORY_API_URL: ${{ github.server_url }}/api/v1/repos/luoanwu/digital-employee-os
- name: Verify source-bound acceptance and governance
run: pnpm check
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: juhai_ai_hr_system_ci
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: --health-cmd "pg_isready -U postgres -d juhai_ai_hr_system_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"]
|
0
|
3
|
0
|
1795676762
|
1795676423
|
1795676762
|
|
0
|
|
0
|
Edit
Delete
|
|
52062
|
28434
|
83
|
5
|
648ecfdeb4f86967e26cdaa1c930a4294184ab95
|
0
|
@juhai/* exact pin + contracts fixtures
|
0
|
name: Platform governance (consumer)
"on": name: Platform governance (consumer)
"on":
pull_request:
push:
branches: [main]
jobs:
pins:
name: '@juhai/* exact pin + contracts fixtures'
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Checkout
run: |
auth="Authorization: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 | tr -d '\n')"
git init -q .
git remote add origin "$REPO_URL" 2>/dev/null || git remote set-url origin "$REPO_URL"
git -c protocol.version=2 -c http.extraHeader="$auth" fetch -q --prune --tags origin \
"+refs/heads/*:refs/remotes/origin/*" "$CHECKOUT_SHA"
git checkout -q -f --detach "$CHECKOUT_SHA"
git clean -ffdxq
test "$(git rev-parse HEAD)" = "$CHECKOUT_SHA"
env:
REPO_TOKEN: ${{ github.token }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
CHECKOUT_SHA: ${{ github.sha }}
- name: Setup Node.js
run: bash scripts/ci-setup-node.sh 22.23.2
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Configure read-only platform package authentication
run: node scripts/configure-platform-npm.mjs
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Install (frozen lockfile)
run: pnpm install --frozen-lockfile --ignore-scripts
- name: check:pins(必需检查)
run: pnpm exec juhai-governance check:pins --require @juhai/contracts --require @juhai/governance
- name: check:fixtures(必需检查)
run: pnpm exec juhai-governance check:fixtures --suite governance/fixtures/contracts.suite.json
- if: always()
name: Print governance reports
run: |
for report in reports/*.latest.json; do
[ -f "$report" ] || continue
echo "::group::$report"
cat "$report"
echo "::endgroup::"
done
timeout-minutes: "15"
permissions:
contents: read
...
|
pins
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795676423
|
1795676423
|
|
0
|
|
0
|
Edit
Delete
|
|
52063
|
28434
|
83
|
5
|
648ecfdeb4f86967e26cdaa1c930a4294184ab95
|
0
|
Platform consumer gate
|
0
|
name: Platform governance (consumer)
"on": name: Platform governance (consumer)
"on":
pull_request:
push:
branches: [main]
jobs:
required:
name: Platform consumer gate
runs-on: ubuntu-latest
if: always()
steps:
- name: Require completed pins and fixture checks
run: test "$PINS_RESULT" = success
env:
PINS_RESULT: ${{ needs.pins.result }}
timeout-minutes: "2"
permissions:
contents: read
...
|
required
|
["pins"]
|
["ubuntu-latest"]
|
0
|
7
|
0
|
0
|
1795676423
|
1795676423
|
|
0
|
|
0
|
Edit
Delete
|
|
52064
|
28435
|
83
|
5
|
a80158d7d84b8e710b34e018154dab474a43701e
|
0
|
Static governance
|
0
|
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
run: |
auth="Authorization: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 | tr -d '\n')"
git init -q .
git remote add origin "$REPO_URL" 2>/dev/null || git remote set-url origin "$REPO_URL"
git -c protocol.version=2 -c http.extraHeader="$auth" fetch -q --prune --tags origin \
"+refs/heads/*:refs/remotes/origin/*" "$CHECKOUT_SHA"
git checkout -q -f --detach "$CHECKOUT_SHA"
git clean -ffdxq
test "$(git rev-parse HEAD)" = "$CHECKOUT_SHA"
env:
REPO_TOKEN: ${{ github.token }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
CHECKOUT_SHA: ${{ github.sha }}
- name: Setup Node.js
run: bash scripts/ci-setup-node.sh 22.23.2
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Configure read-only platform package authentication
run: node scripts/configure-platform-npm.mjs
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Prepare locked Digital Employee OS
run: bash scripts/ci-prepare-locked-os.sh
env:
OS_REPO_READ_TOKEN: ${{ secrets.OS_REPO_READ_TOKEN }}
OS_REPOSITORY_URL: ${{ github.server_url }}/luoanwu/digital-employee-os
OS_REPOSITORY_API_URL: ${{ github.server_url }}/api/v1/repos/luoanwu/digital-employee-os
- if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
name: Require same-repository PR secrets
run: |
echo "::error::Fork PRs lack read-only platform/OS tokens; run Governance on an internal branch before merge."
exit 1
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run source governance gate
run: pnpm check:source
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795676762
|
1795676762
|
|
0
|
|
0
|
Edit
Delete
|
|
52065
|
28435
|
83
|
5
|
a80158d7d84b8e710b34e018154dab474a43701e
|
0
|
Runtime and UI acceptance
|
0
|
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/juhai_ai_hr_system_ci?schema=public
REDIS_URL: redis://127.0.0.1:6379
steps:
- name: Checkout
run: |
auth="Authorization: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 | tr -d '\n')"
git init -q .
git remote add origin "$REPO_URL" 2>/dev/null || git remote set-url origin "$REPO_URL"
git -c protocol.version=2 -c http.extraHeader="$auth" fetch -q --prune --tags origin \
"+refs/heads/*:refs/remotes/origin/*" "$CHECKOUT_SHA"
git checkout -q -f --detach "$CHECKOUT_SHA"
git clean -ffdxq
test "$(git rev-parse HEAD)" = "$CHECKOUT_SHA"
env:
REPO_TOKEN: ${{ github.token }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
CHECKOUT_SHA: ${{ github.sha }}
- name: Setup Node.js
run: bash scripts/ci-setup-node.sh 22.23.2
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Configure read-only platform package authentication
run: node scripts/configure-platform-npm.mjs
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
name: Require same-repository PR secrets
run: |
echo "::error::Fork PRs lack read-only platform/OS tokens; run Governance on an internal branch before merge."
exit 1
- 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 NestJS UI acceptance
run: pnpm check:ui
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Prepare locked Digital Employee OS
run: bash scripts/ci-prepare-locked-os.sh
env:
OS_REPO_READ_TOKEN: ${{ secrets.OS_REPO_READ_TOKEN }}
OS_REPOSITORY_URL: ${{ github.server_url }}/luoanwu/digital-employee-os
OS_REPOSITORY_API_URL: ${{ github.server_url }}/api/v1/repos/luoanwu/digital-employee-os
- name: Verify source-bound acceptance and governance
run: pnpm check
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: juhai_ai_hr_system_ci
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: --health-cmd "pg_isready -U postgres -d juhai_ai_hr_system_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"]
|
0
|
7
|
0
|
0
|
1795676762
|
1795676762
|
|
0
|
|
0
|
Edit
Delete
|
|
52066
|
28436
|
83
|
5
|
a80158d7d84b8e710b34e018154dab474a43701e
|
0
|
@juhai/* exact pin + contracts fixtures
|
0
|
name: Platform governance (consumer)
"on": name: Platform governance (consumer)
"on":
pull_request:
push:
branches: [main]
jobs:
pins:
name: '@juhai/* exact pin + contracts fixtures'
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Checkout
run: |
auth="Authorization: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 | tr -d '\n')"
git init -q .
git remote add origin "$REPO_URL" 2>/dev/null || git remote set-url origin "$REPO_URL"
git -c protocol.version=2 -c http.extraHeader="$auth" fetch -q --prune --tags origin \
"+refs/heads/*:refs/remotes/origin/*" "$CHECKOUT_SHA"
git checkout -q -f --detach "$CHECKOUT_SHA"
git clean -ffdxq
test "$(git rev-parse HEAD)" = "$CHECKOUT_SHA"
env:
REPO_TOKEN: ${{ github.token }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
CHECKOUT_SHA: ${{ github.sha }}
- name: Setup Node.js
run: bash scripts/ci-setup-node.sh 22.23.2
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.9 --activate
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Configure read-only platform package authentication
run: node scripts/configure-platform-npm.mjs
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Install (frozen lockfile)
run: pnpm install --frozen-lockfile --ignore-scripts
- name: check:pins(必需检查)
run: pnpm exec juhai-governance check:pins --require @juhai/contracts --require @juhai/governance
- name: check:fixtures(必需检查)
run: pnpm exec juhai-governance check:fixtures --suite governance/fixtures/contracts.suite.json
- if: always()
name: Print governance reports
run: |
for report in reports/*.latest.json; do
[ -f "$report" ] || continue
echo "::group::$report"
cat "$report"
echo "::endgroup::"
done
timeout-minutes: "15"
permissions:
contents: read
...
|
pins
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795676762
|
1795676762
|
|
0
|
|
0
|
Edit
Delete
|
|
52067
|
28436
|
83
|
5
|
a80158d7d84b8e710b34e018154dab474a43701e
|
0
|
Platform consumer gate
|
0
|
name: Platform governance (consumer)
"on": name: Platform governance (consumer)
"on":
pull_request:
push:
branches: [main]
jobs:
required:
name: Platform consumer gate
runs-on: ubuntu-latest
if: always()
steps:
- name: Require completed pins and fixture checks
run: test "$PINS_RESULT" = success
env:
PINS_RESULT: ${{ needs.pins.result }}
timeout-minutes: "2"
permissions:
contents: read
...
|
required
|
["pins"]
|
["ubuntu-latest"]
|
0
|
7
|
0
|
0
|
1795676762
|
1795676762
|
|
0
|
|
0
|
Edit
Delete
|
|
52068
|
28437
|
199
|
5
|
9a41e387ceb3f955e3d067bf323f74c2708c3da9
|
0
|
Static governance
|
0
|
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
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
- if: always()
name: Upload static governance evidence
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: governance-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
path: |
reports/*.latest.json
!reports/governance-profile-*.latest.json
!reports/runtime-acceptance.latest.json
!reports/conformance-differential.latest.json
!reports/ui-acceptance.latest.json
retention-days: "30"
timeout-minutes: "25"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
0
|
3
|
0
|
1795677239
|
1795677106
|
1795677239
|
|
0
|
|
0
|
Edit
Delete
|
|
52069
|
28437
|
199
|
5
|
9a41e387ceb3f955e3d067bf323f74c2708c3da9
|
0
|
IM component tests and build
|
0
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
im-component-acceptance:
name: IM component tests and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run IM unit and HTTP component acceptance
run: pnpm --filter api-nestjs exec vitest run test/im-config.test.ts test/im-work-order-client.test.ts test/im-work-task-client.test.ts test/im-digital-execution-client.test.ts test/im-hub.acceptance.test.ts
- name: Build API and Web
run: |
pnpm --filter @repo/contracts... build
pnpm --filter api-nestjs build
pnpm --filter web build
timeout-minutes: "20"
...
|
im-component-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
0
|
3
|
0
|
1795677239
|
1795677106
|
1795677239
|
|
0
|
|
0
|
Edit
Delete
|
|
52070
|
28438
|
199
|
5
|
9a41e387ceb3f955e3d067bf323f74c2708c3da9
|
0
|
manifest-and-code
|
0
|
name: Platform overlay
"on": [push, pull_r name: Platform overlay
"on": [push, pull_request]
jobs:
manifest-and-code:
name: manifest-and-code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- run: pnpm --filter @repo/contracts... build
- run: pnpm check:platform
...
|
manifest-and-code
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795677106
|
1795677106
|
|
0
|
|
0
|
Edit
Delete
|
|
52071
|
28439
|
199
|
5
|
e1fb4cc7b384214b2642399a20a6b318cf03c353
|
0
|
Static governance
|
0
|
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
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run static governance gate
run: pnpm check
- if: always()
name: Upload static governance evidence
uses: actions/upload-artifact@v3
with:
if-no-files-found: warn
name: governance-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
path: |
reports/*.latest.json
!reports/governance-profile-*.latest.json
!reports/runtime-acceptance.latest.json
!reports/conformance-differential.latest.json
!reports/ui-acceptance.latest.json
retention-days: "30"
timeout-minutes: "25"
...
|
static-governance
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795677239
|
1795677239
|
|
0
|
|
0
|
Edit
Delete
|
|
52072
|
28439
|
199
|
5
|
e1fb4cc7b384214b2642399a20a6b318cf03c353
|
0
|
IM component tests and build
|
0
|
name: Governance
"on":
pull_request:
name: Governance
"on":
pull_request:
push:
branches:
- main
jobs:
im-component-acceptance:
name: IM component tests and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- name: Generate Prisma clients
run: pnpm prisma:generate
- name: Run IM unit and HTTP component acceptance
run: pnpm --filter api-nestjs exec vitest run test/im-config.test.ts test/im-work-order-client.test.ts test/im-work-task-client.test.ts test/im-digital-execution-client.test.ts test/im-hub.acceptance.test.ts
- name: Build API and Web
run: |
pnpm --filter @repo/contracts... build
pnpm --filter api-nestjs build
pnpm --filter web build
timeout-minutes: "20"
...
|
im-component-acceptance
|
["static-governance"]
|
["ubuntu-latest"]
|
0
|
7
|
0
|
0
|
1795677239
|
1795677239
|
|
0
|
|
0
|
Edit
Delete
|
|
52073
|
28440
|
199
|
5
|
e1fb4cc7b384214b2642399a20a6b318cf03c353
|
0
|
manifest-and-code
|
0
|
name: Platform overlay
"on": [push, pull_r name: Platform overlay
"on": [push, pull_request]
jobs:
manifest-and-code:
name: manifest-and-code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.9
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: node scripts/platform/with-registry.mjs -- install --frozen-lockfile
env:
PLATFORM_NPM_TOKEN: ${{ secrets.PLATFORM_NPM_TOKEN }}
- run: pnpm --filter @repo/contracts... build
- run: pnpm check:platform
...
|
manifest-and-code
|
null
|
["ubuntu-latest"]
|
0
|
5
|
0
|
0
|
1795677239
|
1795677239
|
|
0
|
|
0
|
Edit
Delete
|