Skip to content

ci: run Rust tests on Win/Linux (+ argv test)#208

Open
oratis wants to merge 2 commits into
mainfrom
ci/cross-platform-tests
Open

ci: run Rust tests on Win/Linux (+ argv test)#208
oratis wants to merge 2 commits into
mainfrom
ci/cross-platform-tests

Conversation

@oratis

@oratis oratis commented Jun 27, 2026

Copy link
Copy Markdown
Owner

C from the autonomous list. The cross-platform CI job was compile-only; now it runs the Rust suite on Windows + Linux so platform-specific logic is tested where it runs, not just compiled.

What

  • ci.yml: add a cargo test step to the cross-platform matrix job (renamed → "compile + test").
  • lib.rs: add a unit test for paths_from_argv — verifies it skips argv[0], drops non-Markdown and non-existent paths, and keeps the real .md. It's cfg(win/linux) (matching the fn), so it runs in this job. The Linux token-file fallback test also now runs on the Linux runner.

Cost note

This adds cargo test to 2 runners on every PR (~a few min each, cached). If PR CI time matters more, easy to scope to push: [main] only — say the word.

Verified: YAML valid; macOS cargo check --tests green (the new test is correctly excluded off Win/Linux). The Win/Linux CI on this PR exercises the new test.

🤖 Generated with Claude Code

oratis and others added 2 commits June 27, 2026 16:29
The cross-platform CI job was compile-only. Add `cargo test` so platform-
specific logic (argv file-open, the Linux token-file fallback) is exercised
where it runs, not just compiled. Also adds a unit test for paths_from_argv
(skips argv[0], keeps only existing Markdown files) — it's cfg(win/linux) so
it runs in that CI job.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant