Skip to content

(main) fix: update code to comply with new clippy lints #158

(main) fix: update code to comply with new clippy lints

(main) fix: update code to comply with new clippy lints #158

Workflow file for this run

name: Rust
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
env:
CARGO_TERM_COLOR: always
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update toolchain
run: rustup update
- name: Install nightly
run: rustup default nightly
check:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cargo clippy
run: cargo clippy --all -- --verbose -D warnings
build:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cargo build
run: cargo build --release --verbose
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
doc:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check doc
run: RUSTDOCFLAGS="-D warnings" cargo doc --document-private-items --all --verbose --release
fmt:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check doc
run: cargo fmt -- --check
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install tarpaulin
run: cargo install cargo-tarpaulin
- name: Check coverage
run: cargo tarpaulin --fail-under 80