Skip to content

Commit 54b1093

Browse files
committed
ci: add macos-latest to test matrix
Platform-specific code paths (Unix permission bits in `hook install`, native clipboard via arboard, hook path resolution) are currently only exercised on Ubuntu. Extend the `clippy` and `test` jobs to run on `macos-latest` alongside `ubuntu-24.04` via a strategy matrix so these paths get continuous coverage on macOS. `fmt`, `test-eval`, `msrv`, `audit`, `dependency-review`, and `reuse` stay Ubuntu-only — they are platform-agnostic and duplicating them would waste runner time. Windows is intentionally out of scope for this ticket. `fail-fast: false` keeps a failure on one OS from cancelling the other, making regressions easier to diagnose. Closes audit entry F-016 from #3.
1 parent 14bc092 commit 54b1093

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ jobs:
3636
- run: cargo fmt --check
3737

3838
clippy:
39-
name: Clippy
39+
name: Clippy (${{ matrix.os }})
4040
needs: fmt
41-
runs-on: ubuntu-24.04
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
os: [ubuntu-24.04, macos-latest]
45+
runs-on: ${{ matrix.os }}
4246
timeout-minutes: 15
4347
steps:
4448
- uses: actions/checkout@v4
@@ -50,9 +54,13 @@ jobs:
5054
- run: cargo clippy --all-targets -- -D warnings
5155

5256
test:
53-
name: Test
57+
name: Test (${{ matrix.os }})
5458
needs: fmt
55-
runs-on: ubuntu-24.04
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
os: [ubuntu-24.04, macos-latest]
63+
runs-on: ${{ matrix.os }}
5664
timeout-minutes: 15
5765
steps:
5866
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)