Skip to content

Implement a function to humanize bytes. Remove dependency. #55

Implement a function to humanize bytes. Remove dependency.

Implement a function to humanize bytes. Remove dependency. #55

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
paths-ignore:
- "README.md"
- "LICENSE-*"
- ".gitignore"
pull_request:
branches: ["main"]
paths-ignore:
- "README.md"
- "LICENSE-*"
- ".gitignore"
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy, rustfmt"
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features -- -D clippy::pedantic -D warnings
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo install cargo-tarpaulin cargo-mutants
- run: cargo tarpaulin --all-features --engine llvm
- run: cargo mutants