git-time-machine 0.4.0

🕰️ A visual TUI for browsing Git reflog and restoring reachable local history
name: Rust CI

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

env:
  CARGO_TERM_COLOR: always

jobs:
  build_and_test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    
    - name: Set up Rust
      uses: dtolnay/rust-toolchain@stable
      with:
        components: rustfmt, clippy

    - name: Check formatting
      run: cargo fmt --check

    - name: Run Clippy
      run: cargo clippy -- -D warnings
      
    - name: Check compilation
      run: cargo check --verbose
      
    - name: Build
      run: cargo build --verbose
      
    - name: Run tests
      run: cargo test --verbose