- Add docs/wiki/ with 11 wiki pages (Home, Architecture, Database, AI-Providers, PII-Detection, IPC-Commands, CICD-Pipeline, Security-Model, Integrations, Development-Setup, Troubleshooting) - Add wiki-sync step to .woodpecker/test.yml: syncs docs/wiki/*.md to the Gogs wiki git repo on every push to master - Add Wiki Maintenance section to CLAUDE.md: code→wiki file mapping so Claude and contributors know which wiki page to update per change Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
---
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
network_mode: gogs_default
|
|
environment:
|
|
- CI_REPO_CLONE_URL=http://gogs_app:3000/sarman/tftsr-devops_investigation.git
|
|
|
|
pipeline:
|
|
rust-fmt-check:
|
|
image: rust:1.88-slim
|
|
commands:
|
|
- rustup component add rustfmt
|
|
- cargo fmt --manifest-path src-tauri/Cargo.toml --check
|
|
|
|
rust-clippy:
|
|
image: rust:1.88-slim
|
|
commands:
|
|
- apt-get update -qq && apt-get install -y -qq libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf pkg-config
|
|
- rustup component add clippy
|
|
- cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings
|
|
|
|
rust-tests:
|
|
image: rust:1.88-slim
|
|
commands:
|
|
- apt-get update -qq && apt-get install -y -qq libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf pkg-config
|
|
- cargo test --manifest-path src-tauri/Cargo.toml
|
|
|
|
frontend-typecheck:
|
|
image: node:22-alpine
|
|
commands:
|
|
- npm ci
|
|
- npx tsc --noEmit
|
|
|
|
frontend-tests:
|
|
image: node:22-alpine
|
|
commands:
|
|
- npm ci
|
|
- npm run test:run
|
|
|
|
wiki-sync:
|
|
image: alpine/git
|
|
secrets:
|
|
- GOGS_TOKEN
|
|
when:
|
|
branch: master
|
|
event: push
|
|
commands:
|
|
- git config --global user.email "ci@tftsr.com"
|
|
- git config --global user.name "TFTSR CI"
|
|
- git clone "https://${GOGS_TOKEN}@gogs.tftsr.com/sarman/tftsr-devops_investigation.wiki.git" /tmp/wiki
|
|
- cp docs/wiki/*.md /tmp/wiki/
|
|
- cd /tmp/wiki
|
|
- git add -A
|
|
- git diff --cached --quiet && echo "Wiki up to date, nothing to push." && exit 0
|
|
- git commit -m "docs: sync wiki from ${CI_COMMIT_SHA} on ${CI_COMMIT_BRANCH}"
|
|
- git push
|