Reference site: Example Studio on ipal-kit (reference/), index for agents, CI job
reference/ is one complete client site on the plugin (made-up company, pl/en, MongoDB, every library block and template, token standard light/dark, forms, consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook, smoke tests). It uses the plugin as file:.. (injected) and is not shipped. - docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs, kept current by test/referenceIndex.test.ts) - AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference, ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b - CI: reference (fast) on every push, reference-full on main; doctor steps wired, commented until ipal-doctor ships Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8bb5ebd394
commit
8adac41f92
@@ -25,3 +25,75 @@ jobs:
|
||||
- run: pnpm lint
|
||||
- run: pnpm test:int
|
||||
- run: pnpm build
|
||||
|
||||
# The reference site (reference/, docs/dev/reference-site-proposal.md). Fast part on every push and PR:
|
||||
# install against the freshly built plugin, committed generated files current, typecheck.
|
||||
reference:
|
||||
runs-on: ubuntu-latest
|
||||
needs: check
|
||||
env:
|
||||
PAYLOAD_SECRET: ci-reference-secret-0123456789abcdef
|
||||
DATABASE_URI: mongodb://127.0.0.1:27017/example-studiopl_dev
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile --ignore-scripts
|
||||
- run: pnpm build
|
||||
# file:.. + injected: the site gets a copy of the built plugin with its peers from the site (README.md)
|
||||
- run: pnpm --dir reference install --frozen-lockfile --ignore-workspace
|
||||
- run: pnpm --dir reference exec ipal-tokens --check
|
||||
- run: pnpm --dir reference generate:importmap && git diff --exit-code reference/src/app
|
||||
- run: pnpm --dir reference generate:types && git diff --exit-code reference/src/payload-types.ts
|
||||
- run: pnpm --dir reference typecheck
|
||||
# Doctor (static) — turn on when ipal-doctor ships (docs/dev/ipal-doctor-proposal.md):
|
||||
# - run: node bin/ipal-doctor.mjs reference --strict --offline --json > doctor-static.json
|
||||
|
||||
# Full run on main (and before a release): MongoDB, seed, production build, smoke tests.
|
||||
reference-full:
|
||||
if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
needs: reference
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:7
|
||||
ports: ['27017:27017']
|
||||
env:
|
||||
CI: '1'
|
||||
DATABASE_URI: mongodb://127.0.0.1:27017/example-studiopl_dev
|
||||
PAYLOAD_SECRET: ci-reference-secret-0123456789abcdef
|
||||
NEXT_PUBLIC_SERVER_URL: http://localhost:3100
|
||||
IPAL_IP_HEADER: x-forwarded-for
|
||||
NEXT_PUBLIC_TURNSTILE_SITE_KEY: 1x00000000000000000000AA
|
||||
TURNSTILE_SECRET_KEY: 1x0000000000000000000000000000000AA
|
||||
ALLOW_LOCAL_MEDIA: '1'
|
||||
E2E_BASE_URL: http://localhost:3100
|
||||
E2E_ADMIN_EMAIL: [email protected]
|
||||
E2E_ADMIN_PASSWORD: ci-e2e-password-not-secret
|
||||
E2E_TOTP_SECRET: JBSWY3DPEHPK3PXPJBSWY3DPEHPK3PXP
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile --ignore-scripts
|
||||
- run: pnpm build
|
||||
- run: pnpm --dir reference install --frozen-lockfile --ignore-workspace
|
||||
- run: pnpm --dir reference seed
|
||||
# the documented production seed path (Coolify Terminal): one named record, dry run
|
||||
- run: SEED_ONLY="pages:kontakt" SEED_DRY_RUN=1 pnpm --dir reference seed
|
||||
- run: pnpm --dir reference payload run e2e/create-test-admin.ts
|
||||
- run: pnpm --dir reference build
|
||||
- run: pnpm --dir reference exec playwright install --with-deps chromium
|
||||
- run: pnpm --dir reference test:e2e
|
||||
# Doctor (deep + HTTP) — turn on when ipal-doctor ships:
|
||||
# - run: node bin/ipal-doctor.mjs reference --strict --offline --deep --url http://localhost:3100
|
||||
|
||||
Reference in New Issue
Block a user