name: CI
on:
push:
branches:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
# macOS runner: triage is a macOS-targeted tool and build.rs compiles the
# Swift notify helper with swiftc (present on macOS runners). The code also
# joins tmux/ps output, so testing on the real target platform is what
# matters.
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test