fix(ci): run the os_sensitive packages on the macOS runner, as on the Windows one

Packages whose tests depend on the OS are in the class os_sensitive of
tools/test-partition.json, and a test of one can only pass on the host whose
behaviour it checks. windows-native-test runs them on Windows because the
Linux run cannot stand in for it. macos-hosted did not: macos-nextest builds
with -p of the macOS packages, so komorebic-core, whose docs_cli test
compares docs/macos/cli with what the macOS command line renders, ran on
no Mac in CI, and relied on the Linux run until the wording of Class
differed per platform (run 42311003287).

macos-hosted now runs `cargo nextest run` of the os_sensitive packages in the
native dev shell (92 tests; they pass on a Mac, checked locally). The cost is
macOS minutes on a public repository, which are free, and a compile of four
crates and their dependencies, a few minutes without a cache. docs/dev/ci.md
says so.
This commit is contained in:
LGUG2Z committed 2026-11-06 16:07:50 -08:00
1 parent 24bdab8c2a
commit 5df5c5c3c5
2 files changed
+12 -3

No files matched your search

+8
View File
@@ -37,6 +37,14 @@ jobs:
run: |
# shellcheck disable=SC2016
nix develop .#native --command bash -c 'cargo nextest run --locked -p komorebi-recorder -E "$(tools/test-partition expr recorder-macos)"'
# the packages whose tests depend on the OS (tools/test-partition.json, class os_sensitive: the wording
# of the identifiers, the schemas, the pages of the cli) run on each platform they describe, as
# windows-native-test does on Windows: the checked-in pages of docs/macos/cli are what only a macOS
# host renders. macos-nextest above runs the macOS packages only
- name: The OS-sensitive tests
run: |
# shellcheck disable=SC2016
nix develop .#native --command bash -c 'cargo nextest run --locked $(tools/test-partition packages os_sensitive)'
- name: The binaries
run: |
nix build -L --no-link --print-out-paths .#komorebi .#komorebic .#komorebi-bar |