You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: merge web+rust into single job and apply rustfmt
The previous workflow had Rust and Web as parallel jobs, but the
Rust build needs web/dist/ at compile time (rust-embed embeds the
SPA into the binary). Without the web build running first, both
clippy and test fail in CI on a fresh checkout.
Fixed by:
- Single 'build' job: npm ci + npm run build → cargo fmt --check
→ cargo clippy → cargo test
- Added Swatinem/rust-cache for faster incremental CI
- Added Node + npm cache via setup-node
- Dropped the macOS matrix entry to halve runtime (ubuntu is
representative enough for a personal project)
- Applied cargo fmt to existing source (one block in skills.rs
was out of style)
Verified locally: fmt clean, clippy clean (-D warnings),
22/22 tests pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments