Skip to content

Add support for workspaces and edit HTML and markdown reports #64

Add support for workspaces and edit HTML and markdown reports

Add support for workspaces and edit HTML and markdown reports #64

Workflow file for this run

name: General Rust
on:
pull_request:
paths:
- "apps/cargo-scout-audit/**"
jobs:
format:
name: Check Rust Format
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Update Rust Toolchain
run: rustup update
- name: Install rustfmt
run: rustup component add rustfmt
- name: Check Formatting
working-directory: apps/cargo-scout-audit
run: cargo fmt --all --check
clippy:
name: Lint with Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Cache Rust Dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo
./apps/cargo-scout-audit/target
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('apps/cargo-scout-audit/Cargo.lock') }}
- name: Update Rust Toolchain
run: rustup update
- name: Install clippy
run: rustup component add clippy
- name: Lint Code
working-directory: apps/cargo-scout-audit
run: cargo clippy --all-targets --all-features -- -D warnings
udeps:
name: Check Unused Dependencies with cargo-udeps
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Cache Rust Dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo
./apps/cargo-scout-audit/target
key: ${{ runner.os }}-cargo-udeps-${{ hashFiles('apps/cargo-scout-audit/Cargo.lock') }}
- name: Update Rust Toolchain
run: rustup update
- name: Install cargo-udeps
run: cargo install cargo-udeps
- name: Check Unused Dependencies
working-directory: apps/cargo-scout-audit
run: cargo udeps --all-targets