Skip to content

⬆️ deps: Update dependencies (non-major) (#47) #159

⬆️ deps: Update dependencies (non-major) (#47)

⬆️ deps: Update dependencies (non-major) (#47) #159

Workflow file for this run

name: Lint and Format
on:
push:
branches: [main]
pull_request:
merge_group:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
lint-and-fmt:
name: lint and fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy, rustfmt
- uses: actions/cache@v4
id: cargo-cache
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Format with rustfmt
run: |
cargo fmt --all -- --check
- name: Lint with clippy
run: |
cargo clippy --all-targets --all-features -- -D warnings