fork/eza
git clone https://git.julia.blue/fork/eza
55c3d084
v0.16.0
1name : Unit tests 2 3on : 4push : 5branches : [ main ] 6paths : 7- '.github/workflows/unit-tests.yml' 8- 'src/**' 9- 'Cargo.*' 10- build.rs 11pull_request : 12branches : [ main ] 13paths : 14- '.github/workflows/unit-tests.yml' 15- 'src/**' 16- 'Cargo.*' 17- build.rs 18 19concurrency : 20group : ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 21cancel-in-progress : true 22 23env : 24CARGO_TERM_COLOR : always 25RUSTFLAGS : --deny warnings 26 27jobs : 28unit-tests : 29runs-on : ${{ matrix.os }} 30 31continue-on-error : ${{ matrix.rust == 'nightly' }} 32 33strategy : 34matrix : 35os : [ ubuntu-latest , macos-latest , windows-latest ] 36rust : [ 1.70.0 , stable , beta , nightly ] 37 38steps : 39- name : Checkout repository 40uses : actions/checkout@v4 41 42- run : rustup toolchain install ${{ matrix.rust }} --profile minimal 43- uses : Swatinem/rust-cache@v2 44 45- name : Install cargo-hack 46uses : nick-fields/retry@v2 47with : 48timeout_minutes : 5 49max_attempts : 5 50command : cargo install cargo-hack 51 52- name : Run rustfmt checks 53run : cargo fmt --check 54 55- name : Run clippy lints 56run : cargo clippy -- -D warnings 57 58- name : Run unit tests 59run : cargo hack test