twin-cli 0.2.0

Git worktree wrapper with side effects (symlinks and hooks)
Documentation
name: Tests

on:
  push:
    branches: [ main, develop ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    name: Test (${{ matrix.os }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    
    steps:
    - uses: actions/checkout@v4
    
    - name: Install Rust
      uses: dtolnay/rust-toolchain@stable
    
    - name: Cache cargo registry
      uses: actions/cache@v4
      with:
        path: ~/.cargo/registry
        key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
    
    - name: Cache cargo index
      uses: actions/cache@v4
      with:
        path: ~/.cargo/git
        key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
    
    - name: Configure Git
      run: |
        git config --global user.email "test@example.com"
        git config --global user.name "Test User"
    
    # cargo-nextestで高速並列テスト
    - name: Install cargo-nextest
      uses: taiki-e/install-action@nextest
    
    - name: Run tests with nextest
      run: cargo nextest run --all-features --profile ci
    
    # ドキュメントビルド確認
    - name: Build documentation
      run: cargo doc --no-deps --verbose