2026-07-21 03:15:54 -04:00
|
|
|
# Glob patterns below mirror the `changes` job's dorny/paths-filter groups in
|
|
|
|
|
# .github/workflows/ci.yml — keep the two in sync. Deliberate deviations:
|
|
|
|
|
# - The `.github/workflows/ci.yml` path CI adds to its `rust`/`mobile` filters
|
|
|
|
|
# is omitted; a CI-workflow-only edit doesn't need a local test run.
|
|
|
|
|
# - `desktop-check`/`desktop-test` don't trigger on `rust` changes, though CI's
|
|
|
|
|
# Desktop Core job does. Those commands are pure TS (biome + node:test) with
|
|
|
|
|
# no Rust dependency, so the extra trigger would be spurious locally.
|
|
|
|
|
# - Deletion-only surface changes do not trigger local hooks: lefthook 2.1.x
|
|
|
|
|
# drops deleted paths from push-file discovery (`extractFiles` existence
|
|
|
|
|
# check, repository.go). CI's dorny/paths-filter catches deletions.
|
|
|
|
|
# Deliberate — accepted, not worked around.
|
2026-03-09 13:02:11 -07:00
|
|
|
pre-commit:
|
2026-05-26 18:05:42 -04:00
|
|
|
parallel: true
|
2026-03-09 13:02:11 -07:00
|
|
|
commands:
|
|
|
|
|
rust-fmt:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["crates/**", "examples/countdown-bot/**"]
|
2026-05-28 17:42:35 -04:00
|
|
|
run: just fmt
|
|
|
|
|
stage_fixed: true
|
2026-03-26 12:50:44 -07:00
|
|
|
desktop-tauri-fmt:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["desktop/src-tauri/**"]
|
2026-05-28 17:42:35 -04:00
|
|
|
run: just desktop-tauri-fmt
|
|
|
|
|
stage_fixed: true
|
|
|
|
|
desktop-fix:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["desktop/**", "pnpm-lock.yaml"]
|
|
|
|
|
exclude: ["desktop/src-tauri/**"]
|
2026-05-28 17:42:35 -04:00
|
|
|
run: just desktop-fix
|
|
|
|
|
stage_fixed: true
|
|
|
|
|
web-fix:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["web/**", "pnpm-lock.yaml"]
|
2026-05-28 17:42:35 -04:00
|
|
|
run: just web-fix
|
|
|
|
|
stage_fixed: true
|
|
|
|
|
mobile-fix:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["mobile/**"]
|
2026-05-28 17:42:35 -04:00
|
|
|
run: just mobile-fix
|
|
|
|
|
stage_fixed: true
|
2026-03-09 13:02:11 -07:00
|
|
|
|
|
|
|
|
pre-push:
|
|
|
|
|
parallel: true
|
|
|
|
|
commands:
|
2026-07-15 22:43:32 -06:00
|
|
|
branch-skew:
|
|
|
|
|
run: ./scripts/check-branch-skew.sh
|
2026-03-09 13:02:11 -07:00
|
|
|
rust-tests:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["crates/**", "migrations/**", "schema/**", "Cargo.toml", "Cargo.lock", "rust-toolchain.toml", "deny.toml", "scripts/run-tests.sh", "justfile"]
|
2026-03-09 13:02:11 -07:00
|
|
|
run: just test-unit
|
2026-07-15 09:26:01 -06:00
|
|
|
desktop-check:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["desktop/**", "pnpm-lock.yaml"]
|
|
|
|
|
exclude: ["desktop/src-tauri/**"]
|
2026-07-15 09:26:01 -06:00
|
|
|
run: just desktop-check
|
2026-05-28 08:17:02 -07:00
|
|
|
desktop-test:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["desktop/**", "pnpm-lock.yaml"]
|
|
|
|
|
exclude: ["desktop/src-tauri/**"]
|
2026-05-28 08:17:02 -07:00
|
|
|
run: just desktop-test
|
|
|
|
|
desktop-tauri-test:
|
2026-07-21 03:15:54 -04:00
|
|
|
# ci.yml:113 — Desktop Core triggers on `rust` OR `desktop-rust`;
|
|
|
|
|
# desktop/src-tauri path-depends on crates/buzz-core, buzz-persona,
|
|
|
|
|
# buzz-sdk, buzz-agent (desktop/src-tauri/Cargo.toml:88-91).
|
|
|
|
|
glob: ["desktop/src-tauri/**", "crates/**", "migrations/**", "schema/**", "Cargo.toml", "Cargo.lock", "rust-toolchain.toml", "deny.toml", "scripts/run-tests.sh", "justfile"]
|
2026-05-28 08:17:02 -07:00
|
|
|
run: just desktop-tauri-test
|
2026-04-13 09:55:14 -07:00
|
|
|
mobile-test:
|
2026-07-21 03:15:54 -04:00
|
|
|
glob: ["mobile/**"]
|
2026-04-13 09:55:14 -07:00
|
|
|
run: just mobile-test
|