forked from wlkns-dev/stimmwerk
CI: Gitea-Workflow, Pre-Push-Hook und Runner-Compose
- .gitea/workflows/ci.yml: Format, Clippy (Warnungen als Fehler) und Tests bei Pull-Anfragen und Push auf main - .githooks/pre-push: dieselbe Prüfung lokal (einschaltbar, überspringbar) - tools/ci-runner: Compose-Datei für act_runner (Token nur in der lokalen .env, Ressourcen über config.yaml begrenzt) - .gitignore: .env, Runner-Daten und -Konfiguration bleiben lokal Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -51,6 +51,12 @@ cargo run --release
|
||||
cargo fmt --check && cargo clippy --all-targets && cargo test
|
||||
```
|
||||
|
||||
**Prüfung vor dem Zusammenführen:** `.gitea/workflows/ci.yml` führt bei jeder Pull-Anfrage und bei jedem Push auf `main`
|
||||
`cargo fmt --check`, `cargo clippy -- -D warnings` und `cargo test --locked` aus (Gitea Actions, kompatibel zu GitHub
|
||||
Actions). Dafür braucht Gitea einen Runner; die Einrichtung steht in `tools/ci-runner/docker-compose.yml`
|
||||
(Registrierungstoken nur in der lokalen `.env`, nie im Repo). Lokal prüft derselbe Satz der Hook `.githooks/pre-push`; einschalten mit
|
||||
`git config core.hooksPath .githooks`, überspringen mit `SKIP_CHECKS=1 git push`.
|
||||
|
||||
## Bedienung im Überblick
|
||||
|
||||
Die App startet auf der **Startseite**: eine Checkliste („Bist du bereit?“: Mikrofon, Kopfhörer, Stimme gemessen,
|
||||
|
||||
Reference in New Issue
Block a user