--- 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