diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1bc6fa1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - run: cargo fmt --check + - run: cargo build + - run: cargo test diff --git a/src/commands/clean.rs b/src/commands/clean.rs index 4b91176..e26c393 100644 --- a/src/commands/clean.rs +++ b/src/commands/clean.rs @@ -14,7 +14,11 @@ pub fn run() { Err(e) => panic!("Failed to remove {}: {}", dir, e), } } - eprintln!("Removed {} files, {}", file_count, format_bytes(total_bytes)); + eprintln!( + "Removed {} files, {}", + file_count, + format_bytes(total_bytes) + ); } fn walk_dir_stats(dir: &Path) -> (usize, u64) {