balls 0.3.5

Git-native task tracker for parallel agent workflows
Documentation
name: CI

on:
  pull_request:
  push:
    branches: [main]

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: "-D warnings"

jobs:
  test:
    name: test + lint + coverage
    runs-on: ubuntu-latest
    timeout-minutes: 6
    steps:
      - uses: actions/checkout@v5

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt

      - uses: Swatinem/rust-cache@v2

      - name: Install cargo-tarpaulin
        uses: taiki-e/install-action@v2
        with:
          tool: cargo-tarpaulin

      - name: cargo test
        run: cargo test --all-targets

      - name: cargo clippy
        run: cargo clippy --all-targets -- -D warnings

      - name: line-length check
        run: bash scripts/check-line-lengths.sh

      - name: coverage (100%)
        run: bash scripts/check-coverage.sh

      - name: cargo publish --dry-run
        run: cargo publish --dry-run

  cross-check:
    name: cross-compile check (macOS)
    runs-on: ubuntu-latest
    timeout-minutes: 6
    steps:
      - uses: actions/checkout@v5

      - name: Install Rust toolchain with macOS target
        uses: dtolnay/rust-toolchain@stable
        with:
          targets: x86_64-apple-darwin

      - uses: Swatinem/rust-cache@v2

      # Catches Linux-only syscalls (e.g. pipe2) landing in portable
      # code without cfg gating. `cargo check` is the lightest tool
      # that verifies the non-Linux branches actually compile.
      - name: cargo check --target x86_64-apple-darwin
        run: cargo check --target x86_64-apple-darwin --all-targets