ci: unify udeps workflow into main rust workflow #549
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install crates | |
run: cargo install --debug cargo-sort cargo-rdme cargo-audit cargo-udeps | |
- name: Lint | |
run: | | |
cargo fmt -- --check --config format_code_in_doc_comments=true | |
cargo rdme --check | |
cargo sort --workspace --check | |
cargo audit -D warnings | |
cargo check --workspace | |
cargo clippy --workspace --all --all-targets --all-features -- -Dwarnings -D clippy::pedantic -D clippy::nursery -D clippy::dbg-macro -A clippy::missing-panics-doc | |
cargo build --workspace | |
cargo test --workspace | |
export RUSTC_BOOTSTRAP=1 && cargo udeps && cd fuzz && cargo udeps |