Zuhause ist künftig git.javagil.de/mi/werkbaum (origin); GitHub bleibt unter dem Remote `github` ein Klon, den scripts/push-github.sh mit `main` versorgt — nur vorwärts, nie erzwungen. Der Klon bleibt aus zwei gemessenen Gründen: Gitea sendet auf raw-Dateien kein Access-Control-Allow-Origin (nachgemessen an mi/werkdock), die ?sourceUrl=-Beispiellinks der READMEs müssen also auf raw.githubusercontent.com zeigen; und der Pages-Workflow lässt sich nicht mitnehmen. Footer, llms.txt und llms.md zeigen jetzt auf Gitea (Repo-Seite ohne Anmeldung lesbar, HTTP 200 geprüft); beide COMMIT_URL-Stellen (deploy-prod.sh und der Pages-Workflow) ziehen mit. deploy-prod.sh prüft origin und github getrennt und erinnert an das Spiegeln, statt selbst zu pushen. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
53 lines
1.8 KiB
YAML
53 lines
1.8 KiB
YAML
# Werkator CI configuration for Werkbaum (built by https://werkator.javagil.de).
|
|
# Reference: https://github.com/mhoennig/werkator/blob/main/docs/configuration.md
|
|
werkator:
|
|
version:
|
|
since: "1.0.1"
|
|
|
|
# Commit status target. The repository lives on Gitea since D95; GitHub stays a
|
|
# clone that `scripts/push-github.sh` feeds by hand. Status checks are posted
|
|
# only once the instance holds a Gitea token; until then this is a label.
|
|
gitea:
|
|
baseUrl: https://git.javagil.de
|
|
owner: mi
|
|
repo: werkbaum
|
|
statusContext: werkator
|
|
|
|
artifacts:
|
|
retentionPerBranch: 3
|
|
|
|
watcher:
|
|
newBranchMaxAge: 5d
|
|
|
|
# Named build definitions. "default" carries no trigger on purpose: it is only
|
|
# the settings base the two real builds inherit from, so nothing runs twice.
|
|
builds:
|
|
default:
|
|
stdoutLog: build.stdout.log
|
|
stderrLog: build.stderr.log
|
|
|
|
# Backend: Kotlin/Spring Boot under backend/, JUnit 5 + Cucumber, H2 in memory.
|
|
# The openApiGenerate task runs as part of compilation; jacoco reports land in
|
|
# backend/build/reports and are browsed by the artifact page's report index.
|
|
backend:
|
|
trigger:
|
|
onPush: true
|
|
cleanCommand: rm -rf backend/build
|
|
buildCommand: cd backend && ./gradlew --console=plain --no-daemon test
|
|
artifactDirs:
|
|
- backend/build/reports
|
|
statusContext: werkator/backend
|
|
|
|
# Frontend: Vite bundles the editor into one self-contained frontend/dist/index.html.
|
|
# `npm ci` installs from the lock file; the tests run first, a red Vitest run
|
|
# never produces an artifact. The default build carries the "latest build" hint,
|
|
# exactly like the GitHub Pages deployment.
|
|
frontend:
|
|
trigger:
|
|
onPush: true
|
|
cleanCommand: rm -rf frontend/dist frontend/node_modules
|
|
buildCommand: cd frontend && npm ci --no-audit --no-fund && npm test && npm run build
|
|
artifactDirs:
|
|
- frontend/dist
|
|
statusContext: werkator/frontend
|