gitmeta 0.1.0

Fast per-file git metadata (last-commit time/author/subject, churn, tracked/ignored) resolved by scanning a working tree once.
Documentation
name: CI

on:
  push:
    branches: ["**"]
  pull_request:
    branches: [main]

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    name: Build & Test (${{ matrix.os }}, Rust ${{ matrix.rust }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest]
        rust: ["1.79", stable]
        include:
          # Cross-platform coverage on stable: macOS exercises the
          # /tmp ↔ /private/tmp dual-root path; Windows exercises path
          # normalisation.
          - os: macos-latest
            rust: stable
          - os: windows-latest
            rust: stable
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{ matrix.rust }}
      - uses: Swatinem/rust-cache@v2
      - name: Configure git identity
        # The tests create throwaway git repos and make real commits, so a
        # configured identity is required on a clean runner.
        run: |
          git config --global user.email ci@example.com
          git config --global user.name CI
      - name: Build (all features)
        # --locked enforces the committed Cargo.lock so the MSRV job resolves
        # the same dependency versions we pin for Rust 1.79 (e.g. getrandom
        # 0.3, since 0.4 requires edition2024 / Cargo 1.85+).
        run: cargo build --all-features --locked
      - name: Test (default features)
        run: cargo test --locked
      - name: Test (all features)
        run: cargo test --all-features --locked

  lint:
    name: Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt
      - uses: Swatinem/rust-cache@v2
      - name: rustfmt
        run: cargo fmt --check
      - name: clippy
        run: cargo clippy --all-features --all-targets --locked -- -D warnings