worktrunk-wip 0.2.1

wt wip — append-only cross-machine WIP sync for worktrunk
name: CI

on:
  push:
    branches: [main]
  pull_request:

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy
      - uses: Swatinem/rust-cache@v2
      - name: Typos
        uses: crate-ci/typos@v1.45.0
      - name: Format
        run: cargo fmt --all --check
      - name: Clippy
        run: cargo clippy --all-targets -- -D warnings
      # No global git config setup: the test harness is hermetic (it sets
      # per-clone identity and forces `init.defaultBranch=main` itself), so
      # this job runs git in the same bare state as the release workflow.
      # Configuring git here would mask any future environment-dependency
      # regression on the gate while it still broke the release job.
      - name: Test
        run: cargo test