From 5609dbd18103a3bd7949417a2764b5a8dc66dd3c Mon Sep 17 00:00:00 2001 From: le king fu Date: Sat, 24 Oct 2026 22:15:49 -0400 Subject: [PATCH] ci: run check-rust on PRs that touch the onboarding sample CSVs (#461) fs_commands.rs compiles src/__fixtures__/samples/exemple-desjardins.csv and exemple-tangerine.csv into the binary with include_str!, outside the paths of check-rust.yml: a PR that renamed, moved or deleted one broke cargo check without any Rust CI on it. The whole directory is listed; index.ts, read by vitest only, comes along. Refs #461 Co-Authored-By: Claude Opus 5.5 --- .forgejo/workflows/check-rust.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.forgejo/workflows/check-rust.yml b/.forgejo/workflows/check-rust.yml index ef37ebd..0daa112 100644 --- a/.forgejo/workflows/check-rust.yml +++ b/.forgejo/workflows/check-rust.yml @@ -20,6 +20,13 @@ on: # (rustflags, linker, target dir) would change the Rust build, and an # exact-path entry would let it skip Rust CI unnoticed. - '.cargo/**' + # Outside src-tauri/ but compiled into the binary: include_str! in + # src-tauri/src/commands/fs_commands.rs embeds exemple-desjardins.csv and + # exemple-tangerine.csv from this directory (#461), so a PR that renames, + # moves or deletes one breaks cargo check. The whole directory: index.ts, + # read by vitest only, triggers a needless run, which costs minutes, while + # a skipped one would leave the break to the Monday run or to /release. + - 'src/__fixtures__/samples/**' # The weekly run is what feeds the cache to pull requests (#234). The runner # (forgejo-runner v12.7.0) isolates what a pull_request run writes to that # PR's ref: later pushes to the same PR read it back, other PRs never see it.